/* HURSKI Studio — intro loader (ouiwill-style) */

/* rem scale copied from the reference: 10px at 1440px wide, capped by height */
html {
  /* side padding of header + page, same formula as the reference */
  --gut: calc(5px + 5 * (100vw - 375px) / 819);
  --padgut: calc(var(--gut) * 2);
  font-size: min(calc(100vw / 144 + (100vw - 1440px) / 1440 * -5), 1.25vh);
}
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  html { font-size: calc(.43573vw + 8.36601px); }
}
@media (max-width: 375px) {
  html { font-size: 2.66667vw; }
}

/* desktop (as the reference): side padding = 1rem + 4rem */
@media (min-width: 1194.02px) {
  html { --padgut: 5rem; }
}

/* Neue Montreal Regular — the "Pebble" title font of the reference */
@font-face {
  font-family: "Base";
  src: url(fonts/NeueMontreal-Regular.otf) format("opentype");
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #121212;
  font-family: "Base", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
html.is-loading { overflow: hidden; }

/* ---------- LOADER ---------- */
.ldr {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #b9b9b9;                 /* logo colour, same as reference */
  /* curtain: --out 0 → 1 wipes the white up from the bottom */
  clip-path: inset(0 0 calc(var(--out, 0) * 100lvh) 0);
}
.ldr_logo {
  opacity: 0;                     /* JS shows it on the first frame */
  width: 11.67rem;                /* = 10rem of the 55-unit "oui will" logo → same letter height */
  max-width: 51vw;
  will-change: transform;
}
.ldr_logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.ldr_logo path { transform-box: fill-box; }
.ldr_logo .sk {
  fill: none;
  stroke: #fff;
  stroke-linecap: butt;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
}
.ldr_logo #char-s { transform-origin: 50%; }
.ldr_logo #char-i { transform-origin: 50% 0; }

/* ---------- HEADER ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem var(--padgut);
  color: #fff;
  mix-blend-mode: difference;      /* black on white, light on the photo */
  font-size: max(1.4rem, 14px);
  line-height: 1;
  letter-spacing: -.02em;
}
.nav a { color: inherit; text-decoration: none; }
/* symbol from symbol.svg, slowly turning clockwise */
.nav_logo { display: block; width: 2.8rem; min-width: 24px; margin: -.4rem 0; }
.nav_logo svg { display: block; width: 100%; height: auto; animation: logo-spin 12s linear infinite; }
@keyframes logo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nav_logo svg { animation: none; } }
.nav_menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
}

/* link: text rolls up on hover, arrow flies out/in */
.lnk { display: inline-flex; align-items: center; white-space: nowrap; }
.lnk_t, .lnk_arr { position: relative; display: inline-flex; overflow: clip; }
.lnk_t > span { display: block; padding: 1px 0; transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.lnk_t > span + span { position: absolute; left: 0; top: 100%; }
.lnk:hover .lnk_t > span { transform: translateY(-100%); }
.lnk_arr { width: 1.1rem; min-width: 10px; aspect-ratio: 1; margin-left: .45em; }
.lnk_arr > span { position: absolute; inset: 0; display: flex; transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.lnk_arr svg { width: 100%; height: 100%; }
.lnk_arr > span + span { transform: translate(-120%, 120%); }
.lnk:hover .lnk_arr > span:first-child { transform: translate(120%, -120%); }
.lnk:hover .lnk_arr > span + span { transform: none; }

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .nav_menu { display: none; }     /* mobile: menu → burger later */
}

/* ---------- PAGE UNDER THE LOADER ---------- */
.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 16rem var(--padgut) 2rem;
}
/* title row: 8-column grid — title cols 1–4, text cols 5–8, arrow at the right */
.intro_top {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  column-gap: calc(var(--gut) * 2);
  align-items: center;
}
.intro_title {
  grid-area: 1 / 1 / auto / span 4;
  margin: 0;
  font-weight: 400;
  font-size: 6rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.intro_text {
  grid-area: 1 / 5 / auto / span 4;
  max-width: 51.4rem;
  margin: 0;
  color: #878787;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.intro_arr {
  grid-area: 1 / 8 / auto / -1;
  place-self: center end;
  position: relative;
  display: flex;
  width: 1.6rem;
  overflow: clip;
  color: #878787;
  --intarr: 0;                     /* -1 → 0 on intro, 0 → 1 on hover */
}
.intro_arr > span { display: flex; width: 100%; transform: translateY(calc(var(--intarr) * 100%)); }
.intro_arr > span + span { position: absolute; inset: 0; transform: translateY(calc((var(--intarr) - 1) * 100%)); }
.intro_arr svg { display: block; width: 100%; height: auto; }
.intro_title .w { display: inline-block; overflow: clip; vertical-align: top; }
.intro_title .w > span { display: inline-block; }

.intro_hero {
  height: 100lvh;
  margin-top: 2rem;
}
.hero_media {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  /* placeholder until the real photo / video */
  background: linear-gradient(160deg, #d9d9d6 0%, #a9aaa6 55%, #8d8e8a 100%);
}
.hero_media.-flip { position: absolute; z-index: 3; border-radius: 0; }

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .intro { padding: 12rem var(--padgut) 2rem; }
  .intro_top { grid-template-columns: 1fr auto; row-gap: 3rem; }
  .intro_title { grid-column: 1 / -1; font-size: calc(2.02491vw + 32.4066px); }
  .intro_text { grid-area: 2 / 1; }
  .intro_arr { grid-area: 2 / 2; align-self: end; }
  .intro_hero { height: auto; aspect-ratio: 355 / 444; }
}


/* ---------- HOME (index.html) — like ouiwill.com ---------- */
.home_intro {
  position: relative;
  display: flex;
  align-items: flex-end;        /* title sits bottom-left, clear of the object in the photo */
  justify-content: flex-start;
  height: 100lvh;
  min-height: 100svh;
  padding-bottom: var(--padgut);   /* same bottom line as the showreel thumbnail */
  overflow: clip;
  color: #fff;
}
.home_bg {
  position: absolute;
  inset: 0;
  /* hero: live liquid background drawn by fx.js (WebGL); this dark tone shows before it starts / without WebGL */
  background: #0d0d0e;
}
.home_title {
  position: relative;
  margin: 0;
  padding: 0 var(--padgut);     /* left edge = header logo */
  text-align: left;
  font-weight: 400;
  font-size: 6rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.home_title .w { display: inline-block; overflow: clip; vertical-align: top; }
.home_title .w > span { display: inline-block; }

/* on home the header items switch white/black by what is under them (main.js → navTone) */
body.tone .nav { mix-blend-mode: normal; color: #060606; }
body.tone .nav > .-lt { color: #fff; }
body.tone .nav > * { transition: color .3s; }

/* ---------- SHOWREEL ----------
   Sticky stack; the media box is scaled from its top-right corner:
   p = 0 → thumbnail (1/6 width) in the hero's bottom-right corner, p = 1 → full screen.
   main.js sets --yanm, --scanm, --topfix from the scroll position (like the reference). */
.home {
  --stkroom: 50lvh;
  --ease-out: cubic-bezier(.77, 0, .175, 1);
}
.home_reel {
  position: relative;
  z-index: 4;
  min-height: calc(100lvh + 320px + var(--stkroom));
  margin-top: -320px;
  padding: calc(320px + var(--padgut)) var(--padgut) var(--padgut);
  pointer-events: none;
}
.home_reel_stk {
  position: sticky;
  top: var(--padgut);
  height: calc(100lvh - 2 * var(--padgut));
}
.home_reel_pri {
  --yanm: -100%;
  --scanm: .16667;
  --topfix: 3;
  --rmk: 1;
  position: absolute;
  inset: 0;
  transform-origin: 100% 0;
  transform: translateY(calc((1 - var(--topfix)) * var(--padgut))) scale(var(--scanm)) translateY(var(--yanm));
  perspective: 1900px;
  clip-path: inset(0 0 calc((1 - var(--rmk)) * 100%) calc((1 - var(--rmk)) * 100%));
  pointer-events: auto;
  cursor: pointer;
}
.home_reel_media {
  --rot: 0deg;
  position: absolute;
  inset: 0;
  border-radius: 5px;
  transform: rotateX(var(--rot));
  will-change: transform;
  overflow: hidden;
  background: #111;
}
/* play dot: counter-scaled so it stays readable on the thumbnail (--plsc from JS) */
.home_reel_play {
  --plsc: 1;
  position: absolute;
  left: 50%; top: 50%;
  width: 6.5rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  color: #fff;
  transform: translate(-50%, -50%) scale(var(--plsc));
}
.home_reel_play svg { width: 32%; fill: currentColor; }
.home_reel_btn {
  position: absolute;
  left: 50%;
  bottom: 15%;
  translate: -50% 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  cursor: pointer;
  pointer-events: none;
}
.home_reel_btn .lnk_t > span { transform: translateY(100%); transition: transform .4s var(--ease-out); }
.home_reel_btn.A { pointer-events: auto; }
.home_reel_btn.A .lnk_t > span:first-child { transform: none; transition-duration: .8s; }

/* ---------- ABOUT ---------- */
.home_about {
  padding: 2rem var(--padgut) 0;
  color: #060606;
}
.home_about_t {
  margin: 0;
  overflow: clip;
  color: #878787;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.home_about_t span { display: block; transform: translateY(100%); transition: transform .9s cubic-bezier(.771, .029, .189, 1.007); }
.home_about_t.is-in span { transform: none; }
.home_about_bp {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  column-gap: calc(var(--gut) * 2);
  margin-top: 20rem;
  padding-top: 5rem;
  border-top: 1px solid #87878740;
}
.home_about_lg { grid-column: 1 / span 2; }
.home_about_tx { grid-column: 3 / -1; max-width: 103.5rem; }
.home_about_a, .home_about_b {
  margin: 0;
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.home_about_b { margin-top: 10rem; color: #878787; }

/* words: split by main.js, rise one by one when the paragraph scrolls in */
[data-split] .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.33, 0, .017, 1) var(--d, 0s);
}
[data-split].is-in .w > span { transform: none; }

/* client logos: one at a time, cross-fade */
.log {
  position: relative;
  height: 4.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #878787;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 4.6rem;
}
.log_item { position: absolute; inset: 0; opacity: 0; transition: opacity .3s cubic-bezier(.55, 0, .1, 1); }
.log_item.act { opacity: 1; transition: opacity .4s cubic-bezier(.55, 0, .1, 1) .2s; }

/* ---------- SELECTED WORK ---------- */
.home_list { margin-top: 20rem; padding: 0 var(--padgut) 20rem; }
.home_list_tp { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.home_list_tp .lnk { font-size: max(1.4rem, 14px); color: inherit; text-decoration: none; }
.home_list_t {
  margin: 0;
  font-weight: 400;
  font-size: 5rem;
  line-height: .9;
  letter-spacing: -.02em;
}
.home_list_g {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: calc(var(--gut) * 2);
  row-gap: 8rem;
  margin-top: 3rem;
}
.prj { display: block; color: #6b6c68; text-decoration: none; }
.prj-full { grid-column: 1 / -1; }
.prj_md { position: relative; width: 100%; aspect-ratio: 1380 / 1350; overflow: clip; }
.prj-full .prj_md { aspect-ratio: 2 / 1; }
.prj_im {
  position: absolute; inset: 0;
  transition: transform 1s cubic-bezier(.19, 1, .22, 1);
}
.prj:hover .prj_im { transform: scale(1.03); }
/* placeholders until real images / videos */
.prj_im.m1 { background: linear-gradient(160deg, #f0b8a4, #e08f78); }
.prj_im.m2 { background: linear-gradient(160deg, #2b2a28, #0f0f0e); }
.prj_im.m3 { background: linear-gradient(160deg, #c8d2c9, #8fa196); }
.prj_im.m4 { background: linear-gradient(160deg, #e9e6df, #c9c3b6); }
.prj_im.m5 { background: linear-gradient(160deg, #9fb4c7, #5d7590); }

/* more placeholders (filters) */
.prj_im.g1 { background: linear-gradient(160deg, #3a3f55, #171a26); }
.prj_im.g2 { background: linear-gradient(160deg, #dfe3ea, #b9c1cf); }
.prj_im.g3 { background: radial-gradient(ellipse at 50% 40%, #6c5ce0 0%, #2a2460 60%, #120f2c 100%); }
.prj_im.g4 { background: linear-gradient(160deg, #e7efe9, #bfd3c6); }
.prj_im.g5 { background: linear-gradient(160deg, #24384a, #0f1b26); }
.prj_im.g6 { background: linear-gradient(160deg, #f1ede6, #d6cfc2); }
.prj_im.g7 { background: linear-gradient(160deg, #2d2d2b, #121211); }
.prj_im.g8 { background: linear-gradient(160deg, #f0d9c8, #d9b79e); }
.prj_im.g9 { background: linear-gradient(160deg, #5a4636, #2a1f17); }

/* ---------- FILTER (segmented control) ----------
   grey track, white pill slides under the active category */
.seg { margin-top: 3rem; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg_track {
  position: relative;
  display: inline-flex;
  padding: .4rem;
  border-radius: 99px;
  background: #f0f0ee;
}
.seg_ind {
  position: absolute;
  top: .4rem; bottom: .4rem; left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  transition: transform .5s cubic-bezier(.77, 0, .175, 1), width .5s cubic-bezier(.77, 0, .175, 1);
}
.seg_btn {
  position: relative;
  padding: 1.1rem 2.2rem;
  border: 0;
  border-radius: 99px;
  background: none;
  color: #878787;
  font: inherit;
  font-size: max(1.5rem, 14px);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s;
}
.seg_btn:hover, .seg_btn[aria-pressed="true"] { color: #060606; }
.seg_btn:focus-visible { outline: 1px solid #878787; outline-offset: -3px; }

/* cards: hidden by filter, leaving / entering */
.prj[hidden] { display: none; }
.prj { transition: opacity .3s cubic-bezier(.55, 0, .1, 1), transform .3s cubic-bezier(.55, 0, .1, 1); }
.prj.-out { opacity: 0; transform: translateY(1.6rem); }
.prj.-pre { opacity: 0; transform: translateY(4rem); transition: none; }
.prj.-in { transition: opacity .9s cubic-bezier(.771, .029, .189, 1.007) var(--d, 0s), transform .9s cubic-bezier(.771, .029, .189, 1.007) var(--d, 0s); }

/* footer: name left, tags right */
.prj_ft { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-top: 2rem; }
.prj_t {
  margin: calc(1rem + max(10px, 1rem) / 2 - .575em) 0 0;   /* centre the name on the first tag row */
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.prj:hover .prj_t .lnk_t > span { transform: translateY(-100%); }
.prj_tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "PP Neue Montreal Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.prj_tag {
  padding: 1rem;
  background: #ececec;
  color: #9f9f9f;
  font-size: max(10px, 1rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .home_title { font-size: calc(2.02491vw + 32.4066px); }
  .home_list { margin-top: 10rem; }
  .home_list_t { font-size: calc(2.02491vw + 22.4066px); }
  .home_list_g { grid-template-columns: 1fr; row-gap: 5rem; }
  .prj_md, .prj-full .prj_md { aspect-ratio: 1080 / 1056; }
  .prj_ft { flex-direction: column; gap: 1rem; }
  .prj_t { margin-top: 0; }
  .prj_tags { justify-content: flex-start; }
  /* filter: full width, equal buttons, no sideways scroll */
  .seg_track { display: flex; width: 100%; }
  .seg_btn { flex: 1; padding: 1.2rem .4rem; font-size: 14px; }
  .home_title br { display: none; }
  .home_intro { height: 100svh; padding-bottom: calc(var(--padgut) + 6rem); }
  .home .home_title { font-size: 3.6rem; }  /* visible screen height on phones, clear of the bottom edge */
  /* phones: the reel is a plain block under the hero */
  .home { --stkroom: 0lvh; }
  .home_reel { min-height: 0; margin-top: 0; padding: var(--padgut); }
  .home_reel_stk { position: relative; top: auto; height: auto; aspect-ratio: 375 / 460; }
  .home_reel_pri { transform: none; perspective: none; }
  .home_reel_btn .lnk_t > span:first-child { transform: none; }
  .home_reel_btn { pointer-events: auto; }
  .home_about { padding-top: 10rem; }
  .home_about_bp { grid-template-columns: 1fr; row-gap: 3rem; margin-top: 1.6rem; padding-top: 2.4rem; }
  .home_about_lg, .home_about_tx { grid-column: 1 / -1; }
  .home_about_a, .home_about_b { font-size: calc(1.72117vw + 21.5456px); }
  .home_about_b { margin-top: 2lh; }
  .log { height: 3.7rem; line-height: 3.7rem; }
  br.-dk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-split] .w > span, .home_about_t span { transform: none; transition: none; }
}


/* =====================================================================
   ABOUT (about.html) — like ouiwill.com/about
   ===================================================================== */
.about .grey { color: #878787; }
.about [data-split] .grey .w > span { color: #878787; }

/* labels ("Industries", "Services"): rise when visible */
.auto_l, .srv_l { margin: 0; overflow: clip; color: #9f9f9f; font-weight: 400; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.02em; }
.auto_l span, .srv_l span { display: block; transform: translateY(100%); transition: transform .9s cubic-bezier(.771, .029, .189, 1.007); }
.auto_l.is-in span, .srv_l.is-in span { transform: none; }

/* ---------- MATRIX ---------- */
.mtx {
  --step: 100lvh;   /* scroll per word */
  --tail: 40lvh;    /* extra scroll after the last word */
  position: relative;
  height: calc(100lvh + (var(--n) - 1) * var(--step) + var(--tail));
  background: #fff;
}
.mtx_stk {
  position: sticky;
  top: 0;
  height: 100lvh;
  overflow: clip;
  perspective: 1000px;
}
.mtx_l { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.mtx_g { position: absolute; inset: 0; transform-style: preserve-3d; }
.mtx_card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--w, 16vw);
  aspect-ratio: var(--r, 4 / 5);
  margin: calc(var(--w, 16vw) / var(--rn, .8) / -2) 0 0 calc(var(--w, 16vw) / -2);
  background: var(--bg, #ddd);
  opacity: 0;
  will-change: transform, opacity;
}
.mtx_t {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  margin: 0;
  translate: -50% -50%;
  display: flex;
  overflow: clip;
  padding: .12em 0;
  white-space: nowrap;
  font-family: "Times New Roman", Times, Georgia, serif;   /* serif like the reference (Riccione Light) */
  font-weight: 400;
  font-size: 7rem;
  line-height: .9;
  letter-spacing: -.02em;
  color: #060606;
}
.mtx_t .ch { display: inline-block; white-space: pre; transform: translateY(110%); will-change: transform; }

/* ---------- CLAIM ---------- */
.claim { padding: 2rem var(--padgut) 3rem; }
.claim_bp { margin-top: 18rem; padding-top: 4rem; }
.claim_p { margin: 0; font-size: 5rem; line-height: 1.05; letter-spacing: -.02em; }
.indent { display: inline-block; width: 10ch; }

/* ---------- PARALLAX MEDIA (--par -1 → 1 while it crosses the screen) ---------- */
.par { position: relative; overflow: clip; }
.par_in {
  position: absolute;
  inset: -5% 0;
  translate: 0 calc(var(--par, 0) * 5% * .8);
  will-change: translate;
}
.bigimg { padding: 0 var(--padgut); }
.bigimg_m { aspect-ratio: 2100 / 1320; }
.bigimg_m .par_in { background: linear-gradient(170deg, #d8d4cc 0%, #a9a295 50%, #6f685c 100%); }

/* ---------- INDUSTRIES ---------- */
.auto { padding: 12rem var(--padgut); }
.auto_tp, .auto_bp { display: grid; grid-template-columns: repeat(8, 1fr); column-gap: calc(var(--gut) * 2); }
.auto_tp { padding-top: 1.6rem; border-top: 1px solid #87878780; align-items: start; }
.auto_l { grid-column: 1 / span 4; }
.auto_r { grid-column: 5 / -1; margin: 0; font-size: 3.5rem; line-height: 1.1; letter-spacing: -.02em; }
.auto_bp { margin-top: 10rem; align-items: end; }
.auto_md { grid-column: 1 / span 2; position: relative; aspect-ratio: 335 / 400; overflow: clip; }
.auto_im { position: absolute; inset: 0; visibility: hidden; }
.auto_im.act { visibility: visible; }
.auto_im.g0 { background: linear-gradient(160deg, #3a3f55, #171a26); }
.auto_im.g1 { background: linear-gradient(160deg, #e7efe9, #a9c2b2); }
.auto_im.g2 { background: linear-gradient(160deg, #f0b8a4, #d98a70); }
.auto_im.g3 { background: linear-gradient(160deg, #5a4636, #2a1f17); }
.auto_ls { grid-column: 5 / -1; position: relative; margin: 0; padding: 0 0 1px; list-style: none; }
.auto_ls::after, .auto_it::before {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px;
  background: #87878780; transform-origin: 0; transform: scaleX(var(--ln, 1));
  transition: transform .9s cubic-bezier(.771, .029, .189, 1.007) var(--d, 0s);
}
.auto_ls::after { bottom: 0; }
.auto_it { position: relative; padding: calc(2rem + 1px) 0 2rem; font-size: 1.8rem; line-height: 1.3; letter-spacing: -.02em; }
.auto_it::before { top: 0; }
.auto_itw { display: block; color: #878787; }
.auto_it.act .auto_itw { color: #060606; }
/* rows before reveal */
.auto_ls:not(.is-in) { --ln: 0; }
.auto_ls:not(.is-in) .auto_it { --ln: 0; }
.auto_ls .auto_itw { transition: opacity .8s cubic-bezier(.771, .029, .189, 1.007) calc(var(--d, 0s) + .1s), transform .8s cubic-bezier(.771, .029, .189, 1.007) calc(var(--d, 0s) + .1s); }
.auto_ls:not(.is-in) .auto_itw { opacity: 0; transform: translateY(1.6rem); }

/* ---------- LOGOS MARQUEE ---------- */
.logos { position: relative; overflow: clip; padding: 4rem 0; cursor: grab; touch-action: pan-y; user-select: none; }
.logos.-drag { cursor: grabbing; }
.logos_tk { display: flex; width: max-content; will-change: transform; }
.logo_ls { display: flex; flex: none; align-items: center; gap: 10rem; height: 4rem; margin: 0; padding: 0 10rem 0 0; list-style: none; }
.logo_ls li { flex: none; color: #9f9f9f; font-size: 2.8rem; letter-spacing: -.03em; white-space: nowrap; }

/* ---------- SERVICES ---------- */
.srv { padding: 22rem var(--padgut) 20rem; }
.srv_l { margin-bottom: 5rem; }
.srv_ls { margin: 0; padding: 0; list-style: none; }
.srv_r {
  position: relative;
  display: grid; grid-template-columns: repeat(8, 1fr); column-gap: calc(var(--gut) * 2);
  padding: 2.5rem 0 5rem;
}
.srv_r::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: #87878740;
  transform-origin: 0; transform: scaleX(var(--ln, 1)); transition: transform .9s cubic-bezier(.771, .029, .189, 1.007);
}
.srv_c { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.srv_t { margin: 0; font-weight: 400; font-size: 3.5rem; line-height: 1.1; letter-spacing: -.02em; color: #060606; }
.srv_n { display: block; font-size: 12rem; line-height: 1; letter-spacing: -.02em; color: #0606060a; }
.srv_b { grid-column: 5 / -1; }
.srv_cats { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: calc(var(--gut) * 2); margin: 0; padding: 0; list-style: none; font-size: 1.8rem; line-height: 1.6; letter-spacing: -.02em; }
.srv_md { margin-top: 2.8rem; aspect-ratio: 16 / 11; }
.srv_md .g1 { background: linear-gradient(160deg, #dfe3ea, #9eabbf); }
.srv_md .g2 { background: linear-gradient(160deg, #2d2d2b, #121211); }
.srv_md .g3 { background: linear-gradient(160deg, #f0d9c8, #c99a7b); }
.srv_md .g4 { background: linear-gradient(160deg, #24384a, #0f1b26); }
/* reveal */
.srv_n, .srv_cat, .srv_md { transition: opacity .9s cubic-bezier(.771, .029, .189, 1.007), transform .9s cubic-bezier(.771, .029, .189, 1.007); }
.srv_r:not(.is-in) { --ln: 0; }
.srv_r:not(.is-in) .srv_n, .srv_r:not(.is-in) .srv_cat { opacity: 0; transform: translateY(1.6rem); }
.srv_r:not(.is-in) .srv_md { opacity: 0; }
.srv_r.is-in .srv_n { transition-delay: .1s; transition-duration: 1s; }
.srv_r.is-in .srv_cat { transition-duration: .7s; transition-delay: calc(.2s + var(--i, 0) * .05s); }
.srv_r.is-in .srv_md { transition-delay: .3s; }

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .mtx { display: none; }                 /* like the reference: no matrix on phones */
  .claim { padding-top: 10rem; }
  .claim_bp { margin-top: 1.6rem; padding-top: 2.4rem; }
  .claim_p { font-size: 2.4rem; }
  .indent { width: 0; }
  .bigimg_m { aspect-ratio: 355 / 450; }
  .auto { padding: 10rem var(--padgut); }
  .auto_tp { grid-template-columns: 1fr; row-gap: 2rem; }
  .auto_l, .auto_r { grid-column: 1 / -1; }
  .auto_r { font-size: max(calc(37.3019px - 2.48051vw), 3.4vw); }
  .auto_bp { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
  .auto_md { display: none; }
  .auto_ls { grid-column: 1 / -1; }
  .auto_it { padding: calc(1.6rem + 1px) 0 1.6rem; font-size: 1.6rem; }
  .srv { padding-top: 10rem; }
  .srv_r { grid-template-columns: 1fr; row-gap: 2.4rem; padding: 2rem 0 3rem; }
  .srv_c, .srv_b { grid-column: 1; }
  .srv_n { display: none; }
  .srv_md { margin-top: 2.4rem; }
}
@media (max-width: 834px) {
  .srv_cats { grid-template-columns: 1fr; color: #878787; font-size: 1.6rem; }
  .srv_t { font-size: 2rem; }
}

/* =====================================================================
   WORK (work.html) — project wheel + grid
   ===================================================================== */
html.wk-lock { overflow: hidden; }
.wk_wheel {
  position: relative;
  height: 100svh;
  overflow: clip;
  user-select: none;
  touch-action: none;
}

/* names on a soft drum: active one sits on the centre line */
.wk_nav {
  position: absolute;
  top: 0; bottom: 0;
  left: 30%;
  right: 38%;
  perspective: 1200px;
  -webkit-mask-image: linear-gradient(transparent 4%, #000 30%, #000 70%, transparent 96%);
          mask-image: linear-gradient(transparent 4%, #000 30%, #000 70%, transparent 96%);
}
.wk_list { margin: 0; padding: 0; list-style: none; }
.wk_p {
  position: absolute;
  left: 0; top: 50%;
  will-change: transform, opacity;
  transform-origin: 0 50%;
}
.wk_btn {
  display: block;
  margin: 0; padding: 0;
  border: 0; background: none;
  color: #060606;
  font: inherit;
  font-size: 6rem;
  line-height: 1.12;
  letter-spacing: -.03em;
  white-space: nowrap;
  cursor: pointer;
  translate: 0 -50%;
  transition: color .4s;
}
.wk_p:not(.act) .wk_btn { color: #b9b9b9; cursor: default; }   /* inactive names don't react — pick by scroll / drag / categories */
/* active name: on hover slides right and shows an arrow; click opens the case */
.wk_btn > span { display: inline-block; transition: transform .6s cubic-bezier(.19, 1, .22, 1); }
.wk_btn::after {
  content: "↗";
  display: inline-block;
  margin-left: .25em;
  font-size: .45em;
  vertical-align: .9em;
  opacity: 0;
  transform: translate(-.6em, .3em);
  transition: opacity .35s, transform .6s cubic-bezier(.19, 1, .22, 1);
}
.wk_p.act .wk_btn:hover > span, .wk_p.act .wk_btn:focus-visible > span { transform: translateX(2rem); }
.wk_p.act .wk_btn:hover::after, .wk_p.act .wk_btn:focus-visible::after { opacity: 1; transform: translate(2rem, 0); }

/* left: category + big counter (digits roll) */
.wk_side { position: absolute; left: var(--padgut); top: 50%; translate: 0 -50%; }
.wk_cat { margin: 0 0 1.2rem; overflow: clip; color: #878787; font-size: max(1.4rem, 13px); letter-spacing: -.01em; }
.wk_cat span { display: block; transition: transform .5s cubic-bezier(.77, 0, .175, 1); }
.wk_cnt { display: flex; align-items: flex-start; font-size: 12rem; line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wk_cnt_n { display: inline-flex; }
.wk_dg { position: relative; display: inline-block; overflow: visible clip; width: .6em; text-align: center; }   /* clip only top/bottom, so wide glyphs (0, 8) are never cut */
.wk_dg > span { display: block; transition: transform .6s cubic-bezier(.77, 0, .175, 1); }
.wk_dg > span + span { position: absolute; inset: 0; }
.wk_cnt_of { margin: .4rem 0 0 1rem; color: #b9b9b9; font-size: max(1.4rem, 13px); line-height: 1; letter-spacing: 0; }

/* right: picture card of the active project */
.wk_md {
  position: absolute;
  right: calc(var(--padgut) + 4rem);
  top: 50%;
  translate: 0 -50%;
  width: min(30vw, 56vh);
  aspect-ratio: 4 / 5;
  overflow: clip;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
}
.wk_md_stack, .wk_sl { position: absolute; inset: 0; }
.wk_sl { clip-path: inset(100% 0 0 0); }
.wk_sl > i { position: absolute; inset: 0; transform: scale(1.15); }
.wk_sl.-on { clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.771, .029, .189, 1.007); }
.wk_sl.-on > i { transform: none; transition: transform 1.2s cubic-bezier(.33, 0, .017, 1); }
.wk_sl.-top:not(.-on) { clip-path: inset(0 0 100% 0); }  /* going backwards: reveal from the top */
.wk_md_cta {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.4rem;
  border-radius: 99px;
  background: #fff; color: #060606;
  font-size: max(1.4rem, 13px); line-height: 1;
  opacity: 0; translate: 0 .8rem;
  transition: opacity .4s, translate .5s cubic-bezier(.19, 1, .22, 1);
}
.wk_md:hover .wk_md_cta, .wk_md:focus-visible .wk_md_cta { opacity: 1; translate: 0 0; }
.wk_md:hover .wk_md_cta .lnk_t > span { transform: translateY(-100%); }
.wk_tags {
  position: absolute;
  right: calc(var(--padgut) + 4rem);
  top: calc(50% + min(30vw, 56vh) * 1.25 / 2 + 1.2rem);
  width: min(30vw, 56vh);
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0; padding: 0; list-style: none;
  font-family: "PP Neue Montreal Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.wk_tags li { padding: 1rem; background: #ececec; color: #9f9f9f; font-size: max(10px, 1rem); line-height: 1; text-transform: uppercase; white-space: nowrap; transition: opacity .4s, translate .5s cubic-bezier(.19, 1, .22, 1); }
.wk_tags.-swap li { opacity: 0; translate: 0 .6rem; }

/* right edge: one tick per project */
.wk_ticks { position: absolute; right: var(--padgut); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.wk_ticks button { width: 1.2rem; height: 1px; padding: 0; border: 0; background: #c9c9c9; cursor: pointer; transition: width .5s cubic-bezier(.77, 0, .175, 1), background .3s; }
.wk_ticks button::before { content: ""; display: block; height: 1.2rem; margin-top: -.6rem; }   /* bigger hit area */
.wk_ticks button.act { width: 2.6rem; background: #060606; }

/* view switch, bottom-left */
.wk_tgl { position: fixed; left: var(--padgut); bottom: var(--padgut); z-index: 20; margin: 0; }

/* grid view */
.wk_grid { padding: 16rem var(--padgut) 14rem; }
.wk_grid_t { margin: 0; font-weight: 400; font-size: 5rem; line-height: .9; letter-spacing: -.02em; }

/* intro after the loader */
.wk_wheel:not(.is-in) .wk_btn { translate: 0 60%; opacity: 0; }
.wk_wheel .wk_btn { transition: color .4s, translate 1s cubic-bezier(.33, 0, .017, 1) var(--d, 0s), opacity .8s var(--d, 0s); }
.wk_wheel:not(.is-in) .wk_md { clip-path: inset(100% 0 0 0); }
.wk_wheel .wk_md { transition: clip-path 1.1s cubic-bezier(.771, .029, .189, 1.007) .2s; clip-path: inset(0 0 0 0); }
.wk_wheel:not(.is-in) .wk_side, .wk_wheel:not(.is-in) .wk_ticks, .wk_wheel:not(.is-in) .wk_tags { opacity: 0; }
.wk_side, .wk_ticks, .wk_tags { transition: opacity .8s .4s; }

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .wk_md { top: 9rem; right: var(--padgut); left: var(--padgut); translate: none; width: auto; aspect-ratio: 4 / 3; }
  .wk_md_cta { opacity: 1; translate: none; }
  .wk_tags, .wk_ticks { display: none; }
  .wk_nav { left: var(--padgut); right: var(--padgut); top: calc(9rem + (100vw - 2 * var(--padgut)) * .75); bottom: 7rem; }
  .wk_btn { font-size: 3.6rem; }
  .wk_side { top: auto; bottom: calc(var(--padgut) + .4rem); left: auto; right: var(--padgut); translate: none; display: flex; align-items: flex-end; gap: 1rem; }
  .wk_cat { margin: 0 0 .3rem; }
  .wk_cnt { font-size: 4rem; }
  .wk_grid { padding-top: 12rem; }
  .wk_grid_t { font-size: calc(2.02491vw + 22.4066px); }
}
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .wk_tgl { right: var(--padgut); }
  .wk_tgl .seg_track { width: 100%; display: flex; }
  .wk_tgl .seg_btn { flex: 1; padding: 1.2rem .4rem; font-size: 14px; }
  .wk_side { bottom: calc(var(--padgut) + 6.4rem); }
  .wk_nav { bottom: 13rem; }
}

/* =====================================================================
   LET'S TALK — contact window (built by main.js → CONTACT)
   ===================================================================== */
html.mdl-lock { overflow: hidden; }
.mdl {
  --prg: 0;          /* box: 0 = below the screen, 1 = in place */
  --bg: 0;           /* veil */
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 2rem 0 0; border: 0;
  background: transparent;
  display: flex; justify-content: center; align-items: flex-start;
  overflow: clip;
  color: #060606;
}
.mdl:not([open]) { display: none; }
.mdl::backdrop { background: transparent; }
.mdl_veil {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, calc(var(--bg) * .4));
  -webkit-backdrop-filter: blur(calc(var(--bg) * 6px));
          backdrop-filter: blur(calc(var(--bg) * 6px));
}
.mdl_box {
  position: relative;
  width: 100%; max-width: 75rem;
  height: calc(100lvh - 2rem);
  background: #fff;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  translate: 0 calc((1 - var(--prg)) * 105%);
  will-change: translate;
}
.mdl_wrp { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mdl_wrp::-webkit-scrollbar { display: none; }

/* close: 4 arms draw out from the centre; hover turns it 90° */
.mdl_x {
  --arm: 0; --rot: 0deg; --bgs: 0;
  position: absolute; top: 2rem; right: 2rem; z-index: 4;
  width: 4rem; min-width: 36px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; cursor: pointer; color: #060606;
}
.mdl_x::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: #fff; scale: var(--bgs); transition: scale .5s cubic-bezier(.34, 1.56, .64, 1); }
.mdl_x_i { position: relative; width: max(1.2rem, 12px); aspect-ratio: 1; rotate: var(--rot); transition: rotate .6s cubic-bezier(.77, 0, .175, 1); }
.mdl_x_i i {
  position: absolute; inset: 0;
  rotate: calc(45deg + var(--i) * 90deg);
}
.mdl_x_i i::before {
  content: ""; position: absolute; left: 50%; top: -20%;
  width: 1.5px; height: 42%; margin-left: -.75px;
  background: currentColor;
  transform-origin: 50% 100%;
  scale: 1 var(--arm);
  transition: translate .45s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .04s);
}
.mdl_x:hover { --rot: 90deg; }
.mdl_x:hover .mdl_x_i i::before { translate: 0 -25%; }
.mdl_x:focus-visible { outline: 1px solid #878787; outline-offset: 2px; }

/* content */
.ctc { --pad: 3rem; --line: #0606061f; }
.ctc_hero { position: relative; aspect-ratio: 750 / 500; overflow: clip; background: radial-gradient(ellipse at 50% 45%, #2a2a2a 0%, #0b0b0b 70%); color: #fff; }
.ctc_hero svg { position: absolute; left: 50%; top: 50%; width: 20%; translate: -50% -50%; animation: logo-spin 24s linear infinite; opacity: .92; }
.ctc_hero_in { position: absolute; inset: 0; transform: scale(calc(1.15 - var(--prg) * .15)); }
.ctc_claim { margin: 0; padding: var(--pad); font-size: 4.5rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 400; }
.ctc_claim .grey { color: #878787; }
.ctc_row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--pad); padding: var(--pad); border-top: 1px solid var(--line); }
.ctc_rowT, .ctc_celT { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.ctc_rowG { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--pad); }
.ctc_cel { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; font-size: 1.8rem; line-height: 1.3; letter-spacing: -.02em; }
.ctc_cel a { color: inherit; text-decoration: none; }
.ctc_lnk { display: inline-flex; }
.ctc_lnk + .ctc_lnk { margin-top: .6rem; }
.ctc_cel .muted { color: #878787; }
/* lines that rise inside a clip */
.ln { display: block; overflow: clip; }
.ln > span { display: block; translate: 0 100%; }
.mdl.is-in .ln > span { translate: 0 0; transition: translate .8s cubic-bezier(.771, .029, .189, 1.007) var(--d, 0s); }
.mdl .ctc_lnk { opacity: 0; translate: 0 1rem; }
.mdl.is-in .ctc_lnk { opacity: 1; translate: 0 0; transition: opacity .6s cubic-bezier(.771, .029, .189, 1.007) var(--d, 0s), translate .6s cubic-bezier(.771, .029, .189, 1.007) var(--d, 0s); }
.ctc_claim .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ctc_claim .w > span { display: inline-block; translate: 0 110%; }
.mdl.is-in .ctc_claim .w > span { translate: 0 0; transition: translate .9s cubic-bezier(.33, 0, .017, 1) var(--d, 0s); }

/* clock: 24-hour dial, hand + minutes at its tip */
.clk {
  --ang: 0; --sc: 0; --hnd: 0; --tk: 0; --min: 0;
  position: relative; width: 100%; max-width: 21rem; aspect-ratio: 1; margin-top: 4rem;
  container-type: inline-size;
}
.clk_bg { position: absolute; inset: 0; border-radius: 50%; background: #0606060d; scale: var(--sc); }
.clk_tk { position: absolute; inset: 0; rotate: calc(var(--i) * 15deg); }
.clk_tk::before { content: ""; position: absolute; left: 50%; top: 9cqi; width: 1px; height: 5cqi; margin-left: -.5px; background: #0606064d; transform-origin: 50% 0; scale: 1 var(--tkv, 0); transition: scale .45s cubic-bezier(.771, .029, .189, 1.007) calc(var(--i) * .018s + .18s); }
.mdl.is-in .clk_tk { --tkv: 1; }
.clk_hnd { position: absolute; inset: 0; rotate: calc(var(--ang) * 1deg); transition: rotate .4s cubic-bezier(.34, 1.56, .64, 1); }
.clk_hnd::before { content: ""; position: absolute; left: 50%; top: 5cqi; width: 1px; height: 9cqi; margin-left: -.5px; background: #060606; transform-origin: 50% 0; scale: 1 var(--hnd); }
.clk_min { position: absolute; left: 50%; top: 20cqi; translate: -50% -50%; rotate: calc(var(--ang) * -1deg); font-size: 5cqi; line-height: 1.1; font-variant-numeric: tabular-nums; opacity: var(--hnd); }
.clk_dot { position: absolute; left: 50%; top: 50%; width: 1.4cqi; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #060606; scale: var(--sc); }
.mdl.is-in .clk { --sc: 1; --hnd: 1; }
.clk_bg, .clk_dot { transition: scale .9s cubic-bezier(.771, .029, .189, 1.007); }
.clk_hnd::before, .clk_min { transition: scale .5s cubic-bezier(.771, .029, .189, 1.007) .6s, opacity .6s .6s; }

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .mdl { padding: var(--padgut) var(--padgut) 0; }
  .mdl_box { height: 100%; }
  .mdl_x { top: 1.5rem; right: 1.5rem; }
  .ctc { --pad: 2.4rem; }
  .ctc_hero { aspect-ratio: 355 / 350; }
  .ctc_claim { font-size: 2.8rem; }
  .ctc_row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 834px) {
  .ctc_rowG { grid-template-columns: 1fr; gap: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mdl .ln > span, .mdl .ctc_lnk, .ctc_claim .w > span { translate: none; opacity: 1; }
}

/* =====================================================================
   PAGE TRANSITIONS (main.js → FROM_NAV / pt-out)
   ===================================================================== */
html.pt-nav .ldr { display: none; }        /* arriving from another page: no HURSKI loader */

/* A) real transition (site served over http/https): plain cross-fade,
      the header stays in place (own view-transition-name). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out .5s ease both; }
::view-transition-new(root) { animation: vt-fade-in .6s ease both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
.nav { view-transition-name: hk-nav; }
::view-transition-group(hk-nav) { animation-duration: .4s; }

/* B) fallback (opened as a file): the new page simply fades in */
html.pt-in body { animation: pt-fade .6s ease both; }
@keyframes pt-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.pt-in body { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* centred hero title (used on index-hover.html: <section class="home_intro -center">) */
.home_intro.-center { align-items: center; justify-content: center; padding-bottom: 0; }
.home_intro.-center .home_title { text-align: center; }

/* =====================================================================
   CASE PAGE (venwai.html) — layout after ouiwill.com/pebble
   ===================================================================== */
.cs { padding-bottom: 0; }
.cs img, .cs video { display: block; width: 100%; height: auto; border-radius: 2px; }
.cs_g { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; margin: 0 var(--padgut); }

/* intro */
.cs_intro { padding-top: 18.5rem; }
.cs_tp { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; align-items: center; margin: 0 var(--padgut); }
.cs_title { margin: 0; font-weight: 400; font-size: 6rem; line-height: 1.05; letter-spacing: -.02em; color: #060606; }
.cs_title .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.cs_title .w > span { display: inline-block; }
.cs_sub { margin: 0; padding-right: 4rem; font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; color: #878787; }
.cs_arr { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 1.6rem; color: #878787; transition: color .3s; }
.cs_arr:hover { color: #060606; }
.cs_arr svg { display: block; width: 100%; height: auto; }
.cs_hero { margin: 2rem var(--padgut) 0; aspect-ratio: 1400 / 900; border-radius: 2px; }
.cs_hero img.par_in { width: 100%; height: 110%; object-fit: cover; border-radius: 0; }

/* head */
.cs_head { margin-top: 10rem; }
.cs_h { margin: 0; padding-right: 16rem; font-weight: 400; font-size: 4rem; line-height: 1.1; letter-spacing: -.02em; color: #060606; }
.cs_lead { margin: 0; padding-right: 10rem; font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; color: #878787; }

/* scope: right half → label + small picture | list */
.cs_scope { grid-template-columns: repeat(4, 1fr); margin-top: 20rem; padding-top: 2.5rem; }
.cs_scope_c { grid-column: 3; display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: start; }
.cs_scope_t { margin: 0; font-weight: 400; font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; }
.cs_scope_im { position: relative; width: 10rem; aspect-ratio: 100 / 116; overflow: clip; border-radius: 2px; }
.cs_scope_im img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.cs_scope_im img.act { opacity: 1; }
.cs_scope_ls { grid-column: 4; margin: 0; padding: 0; list-style: none; }
.cs_scope_ls li { font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; color: #b5b5b5; transition: color .3s; }
.cs_scope_ls li.act { color: #060606; }

/* text block: grey title left, copy right, thin line on top */
.cs_tt { margin-top: 20rem; padding-top: 2.5rem; border-top: 1px solid rgba(135, 135, 135, .25); }
.cs_tt_t { margin: 0; padding-right: 16rem; font-weight: 400; font-size: 2.5rem; line-height: 1.15; letter-spacing: -.02em; color: #878787; }
.cs_tt_p { justify-self: end; width: 51.3rem; max-width: 100%; font-size: 1.6rem; line-height: 1.3; letter-spacing: -.02em; color: #878787; }
.cs_tt_p p { margin: 0; }
.cs_tt_p p + p { margin-top: 1.3em; }

/* media */
.cs_md { margin: 10rem var(--padgut) 0; }
.cs_md + .cs_md, .cs_md + .cs_dual, .cs_dual + .cs_md { margin-top: 2rem; }
.cs_dual { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem var(--padgut) 0; }
.cs_dual_c { aspect-ratio: 690 / 860; overflow: clip; border-radius: 2px; }
.cs_dual_c img { height: 100%; object-fit: cover; }

/* next project: dark block, label left / name right, picture below */
.cs_next { margin-top: 20rem; padding: 12rem 0 var(--padgut); background: #060606; color: #fff; }
.cs_next_a { display: block; padding: 0 var(--padgut); color: inherit; text-decoration: none; }
.cs_next_tx { display: flex; justify-content: space-between; align-items: center; }
.cs_next_l, .cs_next_t { font-size: 2.5rem; line-height: 1.15; letter-spacing: -.02em; }
.cs_next_l { color: #878787; }
.cs_next_t .lnk_arr { width: 1.6rem; }
.cs_next_bg { display: block; margin-top: 3rem; aspect-ratio: 1400 / 860; max-height: calc(100vh - 12rem); width: 100%; overflow: clip; border-radius: 2px; }
.cs_next_bg img { height: 100%; object-fit: cover; border-radius: 0; filter: brightness(.75); transition: transform 1.2s cubic-bezier(.19, 1, .22, 1), filter .6s; }
.cs_next_a:hover .cs_next_bg img { transform: scale(1.03); filter: brightness(.9); }
.cs_next_a:hover .lnk_t > span { transform: translateY(-100%); }
.cs_next_a:hover .lnk_arr > span:first-child { transform: translate(120%, -120%); }
.cs_next_a:hover .lnk_arr > span + span { transform: none; }

@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .cs_intro { padding-top: 12rem; }
  .cs_tp, .cs_g, .cs_scope { grid-template-columns: 1fr; row-gap: 2rem; }
  .cs_title { font-size: 4.4rem; }
  .cs_sub, .cs_lead { padding-right: 3rem; font-size: 1.8rem; }
  .cs_arr { top: auto; bottom: .3rem; translate: none; }
  .cs_hero { aspect-ratio: 4 / 3; }
  .cs_head { margin-top: 6rem; }
  .cs_h, .cs_tt_t { padding-right: 0; }
  .cs_h { font-size: 3.2rem; }
  .cs_scope { margin-top: 10rem; }
  .cs_scope_c, .cs_scope_ls { grid-column: 1; }
  .cs_scope_c { grid-template-columns: 1fr auto; }
  .cs_tt { margin-top: 10rem; }
  .cs_tt_p { justify-self: start; width: auto; font-size: 1.6rem; }
  .cs_md { margin-top: 4rem; }
  .cs_md + .cs_md, .cs_md + .cs_dual, .cs_dual + .cs_md, .cs_dual { margin-top: 1rem; }
  .cs_dual { grid-template-columns: 1fr; gap: 1rem; }
  .cs_next { margin-top: 10rem; padding-top: 8rem; }
  .cs_next_l, .cs_next_t { font-size: 1.8rem; }
  .cs_next_bg { aspect-ratio: 355 / 450; margin-top: 2rem; }
}
.cs_site { margin-top: 2.4rem; font-size: 1.6rem; color: #060606; text-decoration: none; }
.cs_lead_w .cs_site { font-size: 2rem; }
.cs_tt + .cs_dual { margin-top: 10rem; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) { .cs_tt + .cs_dual { margin-top: 4rem; } }
/* dual cells: same frame, graphic inside drawn smaller (bg = SVG's own grey) */
.cs_dual.-inset .cs_dual_c { background: #E8E7E8; }
.cs_dual.-inset .cs_dual_c img { transform: scale(.72); }

/* two pictures side by side (Cook'd): natural ratio, or framed */
.cs_duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem var(--padgut) 0; }
.cs_tt + .cs_duo { margin-top: 10rem; }
.cs_duo_c { overflow: clip; border-radius: 2px; }
.cs_duo.-tall .cs_duo_c { aspect-ratio: 690 / 900; background: #f4efe9; }
.cs_duo.-tall .cs_duo_c img { height: 100%; object-fit: cover; }
.cs_duo.-mid .cs_duo_c { aspect-ratio: 16 / 9; background: #000; }
.cs_duo.-mid .cs_duo_c img { height: 100%; object-fit: cover; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .cs_duo { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .cs_tt + .cs_duo { margin-top: 4rem; }
}
.cs_duo + .cs_md { margin-top: 2rem; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) { .cs_duo + .cs_md { margin-top: 1rem; } }

/* posters on a light grey stage (Cook'd) */
.cs_stage { display: flex; justify-content: center; align-items: center; gap: 6rem; margin: 2rem var(--padgut) 0; aspect-ratio: 1400 / 860; background: #ECECEC; border-radius: 2px; overflow: clip; }
.cs .cs_stage img { width: auto; height: 72%; border-radius: 2px; box-shadow: 0 2rem 4rem rgba(0, 0, 0, .12); }
.cs_stage + .cs_md, .cs_md + .cs_stage, .cs_duo + .cs_stage, .cs_stage + .cs_duo { margin-top: 2rem; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .cs_stage { gap: 2rem; aspect-ratio: 355 / 300; margin-top: 1rem; }
  .cs .cs_stage img { height: 78%; }
}

/* =====================================================================
   FOOTER (all pages) — links on top, giant HURSKI that rises letter by letter
   ===================================================================== */
.ft { position: relative; z-index: 1; padding: 10rem var(--padgut) 2.4rem; background: #060606; color: #fff; overflow: clip; }
.home + .ft, main:not(.cs) + .ft { margin-top: 20rem; }
.cs + .ft { padding-top: 0; }
.cs + .ft .ft_top { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 4rem; }
.ft a { color: inherit; text-decoration: none; }
.ft .lnk_arr { width: 1rem; }
.ft_top { display: grid; grid-template-columns: 2fr 1fr 1fr; column-gap: 2rem; }
.ft_claim { margin: 0; font-size: 3.2rem; line-height: 1.15; letter-spacing: -.02em; }
.ft_grey { color: #6f6f6f; }
.ft_mail { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin-top: 3rem; font-size: 1.8rem; letter-spacing: -.02em; }
.ft_l { color: #8a8a8a; }
.ft_col { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font-size: 1.8rem; letter-spacing: -.02em; }

/* giant wordmark */
.ft_word { margin-top: 14rem; }
.ft_word svg { display: block; width: 100%; height: auto; overflow: hidden; }
.ft_ch {
  transform-box: fill-box;
  transform: translateY(calc((1 - var(--p, 1)) * 115%));
  transition: transform .9s cubic-bezier(.19, 1, .22, 1), opacity .4s;
  will-change: transform;
}
.ft_word.-live .ft_ch { transition: transform .15s linear, opacity .4s; }
.ft_word:hover .ft_ch { opacity: .35; }
.ft_word .ft_ch:hover { opacity: 1; }

.ft_bt { display: grid; grid-template-columns: 2fr 1fr 1fr; column-gap: 2rem; margin-top: 2.4rem; font-size: 1.4rem; letter-spacing: .02em; text-transform: uppercase; color: #8a8a8a; }
.ft_up { justify-self: start; }
.ft_up:hover { color: #fff; }
.ft_time { margin-left: .6em; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .ft { padding-top: 6rem; }
  .home + .ft, main:not(.cs) + .ft { margin-top: 10rem; }
  .ft_top { grid-template-columns: 1fr 1fr; row-gap: 4rem; }
  .ft_lead { grid-column: 1 / -1; }
  .ft_claim { font-size: 2.6rem; }
  .ft_word { margin-top: 8rem; }
  .ft_bt { grid-template-columns: 1fr auto; row-gap: .8rem; font-size: 1.1rem; }
  .ft_loc { grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .ft_ch { transform: none !important; } }

/* colour palette (Cook'd): horizontal stripes slide in left → right, numbers + codes follow; hover makes a stripe taller */
.cs_pal { display: flex; flex-direction: column; margin: 2rem var(--padgut) 0; aspect-ratio: 1400 / 960; overflow: clip; border-radius: 2px; background: #f4f4f1; }
.cs_pal > .cs_pal_s, .cs_pal_row { flex: 1; transition: flex-grow .9s cubic-bezier(.19, 1, .22, 1); }
.cs_pal_row { display: flex; }
.cs_pal_row .cs_pal_s { flex: 1; }
.cs_pal_s {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  padding: 2.4rem 2.6rem; background: var(--bg); color: var(--fg);
}
.cs_pal > .cs_pal_s:hover, .cs_pal_row:hover { flex-grow: 1.5; }
.cs_pal_n { order: -1; display: block; overflow: clip; font-size: 9rem; line-height: .9; letter-spacing: -.03em; }
.cs_pal_n > span { display: block; transform: translateX(-105%); transition: transform 1.1s cubic-bezier(.19, 1, .22, 1) calc(.1s + var(--i) * .12s); }
.cs_pal_k { display: flex; gap: 4rem; margin: 0; font-size: 1.2rem; line-height: 1.3; opacity: 0; transform: translateX(-1.5rem); transition: opacity .6s, transform .8s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(.3s + var(--i) * .12s); }
.cs_pal_k dt, .cs_pal_k dd { margin: 0; }
.cs_pal.is-in .cs_pal_k { opacity: 1; transform: none; }
.cs_pal.is-in .cs_pal_n > span { transform: none; }
.cs_md + .cs_pal, .cs_pal + .cs_md { margin-top: 2rem; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .cs_pal { aspect-ratio: 355 / 420; margin-top: 1rem; }
  .cs_pal_s { padding: 1.2rem 1.2rem; }
  .cs_pal_k { flex-direction: column; gap: .4rem; font-size: .9rem; }
  .cs_pal_n { font-size: 4rem; }
  .cs_pal + .cs_md { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .cs_pal_s, .cs_pal_k, .cs_pal_n > span { transform: none; clip-path: none; opacity: 1; transition: none; } }

/* Loopora AI cover: orange field with slow drifting glows + soft breathing light behind the logo */
.prj_im.lp { background: #FF8000; overflow: hidden; isolation: isolate; }
.lp_b { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.lp_b1 { width: 70%; aspect-ratio: 1; left: -15%; top: -45%; background: radial-gradient(closest-side, rgba(255, 214, 150, .85), rgba(255, 180, 90, .35) 55%, transparent); animation: lp1 14s ease-in-out infinite alternate; }
.lp_b2 { width: 80%; aspect-ratio: 1; right: -25%; bottom: -70%; background: radial-gradient(closest-side, rgba(200, 70, 0, .75), rgba(230, 100, 0, .3) 55%, transparent); animation: lp2 17s ease-in-out infinite alternate; }
.lp_b3 { width: 46%; aspect-ratio: 1; left: 27%; top: -48%; background: radial-gradient(closest-side, rgba(255, 238, 200, .55), rgba(255, 190, 110, .2) 60%, transparent); animation: lp3 6s ease-in-out infinite alternate; }
.lp_logo { position: absolute; left: 50%; top: 50%; width: 30%; translate: -50% -50%; }
@keyframes lp1 { to { transform: translate(50%, 8%) scale(1.1); } }
@keyframes lp2 { to { transform: translate(-60%, -30%) scale(.9); } }
@keyframes lp3 { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lp_b { animation: none; } }

/* Cook'd AI cover: yellow field, glowing dome at the bottom that slowly breathes and shimmers */
.prj_im.ck { background: linear-gradient(180deg, #F9E81A 34%, #FFD000 100%); overflow: hidden; isolation: isolate; }
.ck_d { position: absolute; left: 50%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; will-change: transform; translate: -50% 0; }
.ck_d1 { width: 190%; top: 60%; background: radial-gradient(closest-side, #FFEF2B 97%, rgba(255, 239, 43, 0) 100%); filter: blur(.25rem); animation: ck1 9s ease-in-out infinite alternate; }
.ck_d2 { width: 150%; top: 70%; background: radial-gradient(closest-side, #FFF469 90%, rgba(255, 244, 105, 0) 100%); filter: blur(1.2rem); animation: ck2 7s ease-in-out infinite alternate; }
.ck_d3 { width: 90%; top: 80%; background: radial-gradient(closest-side, rgba(255, 252, 200, .9), rgba(255, 248, 150, 0)); animation: ck3 5s ease-in-out infinite alternate; }
.ck_logo { position: absolute; left: 50%; top: 50%; width: 42%; translate: -50% -50%; }
@keyframes ck1 { from { transform: translateY(3%) scale(1); } to { transform: translateY(-4%) scale(1.04); } }
@keyframes ck2 { from { transform: translate(-3%, 4%) scale(.97); } to { transform: translate(3%, -5%) scale(1.05); } }
@keyframes ck3 { from { transform: translate(6%, 6%) scale(.9); opacity: .55; } to { transform: translate(-6%, -6%) scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ck_d { animation: none; } }



/* live cover inside a case hero (Loopora) */
.cs_hero.-live { position: relative; overflow: clip; }

/* symbol construction (Loopora): guides draw, then circles */
.lc { margin: 10rem var(--padgut) 0; aspect-ratio: 1708 / 1171; background: #FF8000; border-radius: 2px; overflow: clip; }
.lc svg { display: block; width: 100%; height: 100%; }
.lc path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) var(--d, 0s); }
.lc_a path { transition-duration: 1.6s; }
.lc.is-in path { stroke-dashoffset: 0; }
.cs_tt + .lc { margin-top: 10rem; }
.lc + .cs_duo { margin-top: 2rem; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) { .lc, .cs_tt + .lc { margin-top: 4rem; } .lc + .cs_duo { margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { .lc path { stroke-dashoffset: 0; transition: none; } }
.cs .cs_hero .lp_logo { width: 30%; height: auto; border-radius: 0; }
/* white screenshots: thin frame so they don't melt into the page */
.cs_md.-line img { box-shadow: 0 0 0 1px #e6e6e6; }

/* three portraits in a row (Nova) */
.cs_tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem var(--padgut) 0; }
.cs_tri_c { aspect-ratio: 4 / 5; overflow: clip; border-radius: 2px; }
.cs_tri_c img { height: 100%; object-fit: cover; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) { .cs_tri { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; } }
.cs_duo.-line .cs_duo_c { outline: 1px solid #e6e6e6; outline-offset: -1px; }
.prj_md.-line { outline: 1px solid #e6e6e6; outline-offset: -1px; }
.cs_stage.-green { background: #E9EEDD; }
.cs .cs_stage.-green img { height: 88%; box-shadow: 0 2rem 5rem rgba(0, 0, 0, .14); }
.prj:not(.prj-full) .lp_logo { width: 42%; }
.wk_cat { display: none; }

/* About: big photo slides up into its frame when it comes into view */
.bigimg_m { clip-path: inset(18% 0 0 0); transition: clip-path 1.4s cubic-bezier(.19, 1, .22, 1); }
.bigimg_m .par_in { scale: 1.12; transition: scale 1.6s cubic-bezier(.19, 1, .22, 1); }
.bigimg_m.is-in { clip-path: inset(0); }
.bigimg_m.is-in .par_in { scale: 1; }
@media (prefers-reduced-motion: reduce) { .bigimg_m { clip-path: none; } .bigimg_m .par_in { scale: 1; } }

/* About: portrait at its own size (not full width) */
.bigimg_m.-photo { aspect-ratio: auto; width: min(481px, 100%); }
.bigimg_m.-photo img { display: block; width: 100%; height: auto; }
.bigimg_m.-photo img { scale: 1.08; transition: scale 1.6s cubic-bezier(.19, 1, .22, 1); }
.bigimg_m.-photo.is-in img { scale: 1; }

/* About intro: portrait + statement side by side */
.claim_bp.-me { display: grid; grid-template-columns: 1fr; row-gap: 6rem; margin-top: 16rem; padding-top: 0; }
.claim_bp.-me .bigimg_m.-photo { width: 34rem; border-radius: 2px; overflow: clip; }
.claim_bp.-me .claim_p { max-width: 90rem; }
.claim_bp.-me .claim_p { font-size: 3.5rem; line-height: 1.1; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .claim_bp.-me { grid-template-columns: 1fr; row-gap: 3rem; margin-top: 4rem; }
  .claim_bp.-me .bigimg_m.-photo { width: 60%; }
  .claim_bp.-me .claim_p { font-size: calc(37.3019px - 2.48051vw); }
}
.about > .auto:first-child { padding-top: 20rem; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) { .about > .auto:first-child { padding-top: 12rem; } }
/* About: box follows the portrait's own ratio so nothing is cut */
.auto_md { aspect-ratio: 1280 / 1024; grid-column: 1 / span 3; width: 100%; }

/* ---------- MOBILE MENU ---------- */
.nav_burger { display: none; position: relative; overflow: clip; height: 1.2em; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.nav_burger span { display: block; transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.nav_burger .nb_c { position: absolute; left: 0; top: 100%; }
.mnav-open .nav_burger span { transform: translateY(-100%); }
.mnav { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between;
  padding: 10rem var(--padgut) 3rem; background: #060606; color: #fff;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.77, 0, .175, 1); }
.mnav-open .mnav { clip-path: inset(0); }
.mnav a { color: inherit; text-decoration: none; }
.mnav_ls { display: flex; flex-direction: column; gap: .4rem; }
.mnav_a { display: block; overflow: clip; font-size: max(4.4rem, 40px); line-height: 1.1; letter-spacing: -.03em; }
.mnav_a span { display: block; transform: translateY(105%); transition: transform .8s cubic-bezier(.19, 1, .22, 1); }
.mnav-open .mnav_a span { transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.mnav_a.-here { color: #6f6f6f; }
.mnav_ft { display: flex; flex-direction: column; gap: .6rem; font-size: max(1.6rem, 15px); color: #8a8a8a; }
html.mnav-open { overflow: hidden; }
.mnav-open .nav { mix-blend-mode: normal; color: #fff; }
.mnav-open body.tone .nav, .mnav-open body.tone .nav > * { color: #fff !important; }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .nav_burger { display: block; margin-left: 2rem; }
  .nav_cta { margin-left: auto; }
}
@media (min-width: 1194.02px) and (min-height: 500.02px), (min-width: 900.02px) and (orientation: landscape) and (min-height: 500.02px) { .mnav { display: none; } }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .auto_md { display: block; grid-column: 1 / -1; width: 62%; margin-bottom: 3rem; }
}
/* Work on short landscape screens (phones turned sideways): picture left, names right */
@media (max-height: 500px) and (orientation: landscape) {
  .wk_md { top: 6.4rem; bottom: 7.4rem; left: var(--padgut); right: auto; width: 46vw; aspect-ratio: auto; }
  .wk_nav { top: 6.4rem; bottom: 7.4rem; left: calc(46vw + var(--padgut) + 3rem); right: var(--padgut); }
  .wk_btn { font-size: 3rem; }
  .wk_side { bottom: calc(var(--padgut) + 6.4rem); }
  .wk_cnt { font-size: 3rem; }
}
/* tablets in portrait (600–1194 px wide): two cards per row, smaller Work picture, sane About photo */
@media (min-width: 600px) and (max-width: 1194px) and (orientation: portrait) {
  .home_list_g { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .home_list_g .prj-full { grid-column: 1 / -1; }
  .wk_md { aspect-ratio: 16 / 10; }
  .wk_nav { top: calc(9rem + (100vw - 2 * var(--padgut)) * .625); }
  .auto_md { width: min(62%, 34rem); }
}

/* card without a case yet: warm field + "Soon" */
.prj.-soon { cursor: default; }
.prj_soon { display: flex; align-items: center; justify-content: center; background: #F1F1EF; }
.prj_soon span { font-size: max(4.4rem, 30px); letter-spacing: -.03em; color: #060606; -webkit-text-stroke: .035em #060606; }   /* only Regular is loaded: the stroke makes it bolder in the same typeface */
.prj.-soon:hover .prj_im { transform: none; }

/* Services: number sits small above the title (01–05), visible on all screens */
.srv_c { justify-content: flex-start; gap: 1.2rem; }
.srv_n { order: -1; font-size: 1.8rem; line-height: 1; letter-spacing: 0; color: #9f9f9f; font-variant-numeric: tabular-nums; }
.srv_md .g0 { background: linear-gradient(160deg, #eceae6, #c9c5bd); }
@media (max-width: 1194px) and (orientation: portrait), (max-width: 900px), (max-width: 1194px) and (max-height: 500px) {
  .srv_n { display: block; font-size: 1.4rem; }
  .srv_c { gap: .8rem; }
}

/* showreel: muted loop in the card, full video with sound in a player */
.home_reel_v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rp { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 6rem var(--padgut);
  background: rgba(6, 6, 6, .96); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.rp.-open { opacity: 1; visibility: visible; transition: opacity .5s; }
.rp video { width: 100%; max-height: 100%; aspect-ratio: 1880 / 1080; background: #000; border-radius: 4px; transform: scale(.96); transition: transform .8s cubic-bezier(.19, 1, .22, 1); }
.rp.-open video { transform: none; }
.rp_x { position: absolute; top: 2rem; right: var(--padgut); padding: .6rem 0; border: 0; background: none; color: #fff; font: inherit; font-size: max(1.4rem, 14px); letter-spacing: -.02em; cursor: pointer; }
html.rp-lock { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
