/* Ermin Mujak portfolio, version 2. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: a poster-sized name, an index of the seven identities, then each identity on a full-width
   band painted in that brand's own colours with its pieces on a sideways strip. */
:root {
  --paper: #eef0ec;
  --ink: #101411;
  --muted: #5d665f;
  --line: #cdd2ca;
  --raise: #ffffff;
  --signal: #e62b1e;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0f1210; --ink: #eef0ec; --muted: #98a299; --line: #2a302b; --raise: #181c19; --signal: #ff5a4d; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0f1210; --ink: #eef0ec; --muted: #98a299; --line: #2a302b; --raise: #181c19; --signal: #ff5a4d; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.label { font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- top bar ---------- */
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 20px var(--gutter); }
.bar nav { display: flex; gap: 20px; }
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { padding: clamp(8px, 2vw, 24px) var(--gutter) 0; }
.name {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(4.25rem, 21.5vw, 24rem);
  line-height: .8;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.name span { display: block; }
.name span + span { text-align: right; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: clamp(24px, 4vw, 48px); }
.lede { max-width: 30ch; font-size: clamp(1.125rem, 1.9vw, 1.6rem); line-height: 1.3; font-weight: 500; text-wrap: balance; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--signal); color: #fff; }

/* moving strip of the seven marks */
.reel { overflow: hidden; border-block: 1px solid var(--line); }
.reel-track { display: flex; width: max-content; animation: reel 46s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel img { width: clamp(150px, 19vw, 300px); height: auto; aspect-ratio: 1; object-fit: cover; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ---------- index ---------- */
.index { padding: clamp(48px, 8vw, 112px) var(--gutter); }
.index-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; color: var(--muted); }
.index a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px 20px;
  padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.index li:last-child a { border-bottom: 1px solid var(--line); }
.index img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.index strong { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.75rem, 5.2vw, 4.25rem); line-height: 1; letter-spacing: -.02em; }
.index small { display: block; margin-top: 6px; color: var(--muted); font: 400 .75rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.index .count { color: var(--muted); white-space: nowrap; }
@media (hover: hover) {
  .index a { transition: padding .25s ease, background .25s ease, color .25s ease; }
  .index a:hover { padding-inline: 16px; background: var(--ink); color: var(--paper); }
  .index a:hover small, .index a:hover .count { color: inherit; opacity: .7; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 5; width: 260px; aspect-ratio: 1; border-radius: 6px; object-fit: cover; pointer-events: none; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }

/* ---------- one band per identity; colours come from the brand itself, in both themes ---------- */
.work { background: var(--band); color: var(--on); padding-block: clamp(40px, 7vw, 96px); }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; padding-inline: var(--gutter); }
.work h2 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(3rem, 12.5vw, 12.5rem); line-height: .86; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.work-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.made { opacity: .85; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; font: 400 1.1rem/1 var(--body); cursor: pointer; }
.arrows button:hover { background: var(--on); color: var(--band); }
.strip { display: flex; gap: clamp(10px, 1.6vw, 20px); margin-top: clamp(20px, 3.5vw, 44px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: none; width: min(78vw, 620px); scroll-snap-align: start; }
.strip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

.homa { --band: #17301f; --on: #ece4c8; }
.tedx { --band: #0c0c0c; --on: #ffffff; }
.tedx h2 b { font-weight: inherit; color: #e62b1e; }
.fourseasons { --band: #0a1c63; --on: #ead9b0; }
.nonstop { --band: #e9e3bb; --on: #1c4741; }
.novanook { --band: #84cdf3; --on: #0a3a5c; }
.maab { --band: #8f0a0e; --on: #fff4f0; }
.transportbeton { --band: #e4e5e3; --on: #d0141a; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 32px; padding: clamp(56px, 9vw, 128px) var(--gutter); }
.services .label { color: var(--muted); padding-top: .6em; }
.services li { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(2rem, 6.4vw, 5.5rem); line-height: 1.02; letter-spacing: -.02em; border-top: 1px solid var(--line); padding-block: .14em; }
.services li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(48px, 8vw, 112px) var(--gutter) 28px; }
.contact .label { opacity: .65; }
.mail { margin-top: 12px; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(2rem, 9.2vw, 9.5rem); line-height: .95; letter-spacing: -.01em; overflow-wrap: anywhere; user-select: all; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(20px, 3vw, 36px); }
.contact .button { background: var(--paper); color: var(--ink); }
.contact .button:hover { background: var(--signal); color: #fff; }
.contact a:not(.button) { text-underline-offset: 4px; }
.contact-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 7vw, 96px); padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.contact-foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 640px) {
  .index a { grid-template-columns: 44px minmax(0, 1fr); }
  .index img { width: 44px; height: 44px; }
  .index .count { display: none; }
  .work-head { grid-template-columns: minmax(0, 1fr); }
  .work-meta { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .services { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; }
  .reel-track { animation: none; }
  .index a { transition: none; }
  .strip { scroll-behavior: auto; }
}
