/* ==========================================================================
   DesignPositive+ — site styles
   Paper + ink + brand cyan. Condensed display type, liquid glass navigation.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #e8e4da;
  --paper-2: #dfdacd;
  --paper-3: #d3cdbd;
  --ink: #0d1013;
  --ink-2: #22282e;
  --muted: #5d5f5c;
  --line: rgb(13 16 19 / 0.14);
  --line-strong: rgb(13 16 19 / 0.3);
  --brand: #3fbced;
  --brand-ink: #0a84bb;
  --brand-soft: rgb(63 188 237 / 0.16);
  /* one colour per menu item, shared by the nav hover plus and the footer menu */
  --menu-home: #3fbced;
  --menu-work: #b9a4f6;
  --menu-services: #ff6a3d;
  --menu-contact: #ffc531;
  --dark: #0d1013;
  --dark-2: #171c21;
  --on-dark: #eceeea;
  --on-dark-muted: #9aa2aa;
  --plus-blend: multiply;

  --glass-bg: linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.22));
  --glass-rim: rgb(255 255 255 / 0.85);
  --glass-shadow: 0 18px 40px -18px rgb(13 16 19 / 0.38), 0 2px 6px -2px rgb(13 16 19 / 0.12);

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: "Playfair Display", "Abril Fatface", Georgia, serif;
  --serif: "Playfair Display", Georgia, serif;

  --gutter: clamp(16px, 2.4vw, 36px);
  --radius: clamp(20px, 2.4vw, 32px);
  --radius-sm: 16px;
  --nav-h: 88px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
html.intro, html.menu-open, html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.4s ease, color 0.4s ease;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--brand); color: #0d1013; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 300;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
/* out of sight it is also clipped away and transparent: just moved up, it peeked out under an
   iPhone's status bar when the toolbar shrank or the page bounced at the top. Clipping keeps it
   focusable, so Tab still brings it in. */
.skip-link:not(:focus) { clip-path: inset(50%); opacity: 0; }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }

/* Subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* ---------- Type ---------- */
/* Headings share the logo's voice: a heavy, high-contrast serif set in lowercase like "positive" */
.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  font-feature-settings: "liga", "kern";
}
/* room for descenders (g, y, ç, ş, ğ) and accents inside the reveal mask */
.line { display: block; overflow: hidden; padding: 0.1em 0.04em 0.26em; margin: -0.1em -0.04em -0.26em; }
.display .line + .line { margin-top: -0.06em; }
/* the "neler / yapıyoruz?" heading sits a little tighter */
.page-services .page-hero__title .line + .line { margin-top: -0.1em; }
.line > span { display: inline-block; will-change: transform; }
.line--brand { color: var(--brand-ink); }
.js [data-split-lines] .line > span { transform: translateY(150%); }
.js [data-split-lines].is-in .line > span {
  transform: none;
  transition: transform 1.15s var(--ease-out) calc(var(--i, 0) * 90ms + var(--delay, 0ms));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__plus { width: 12px; height: 12px; color: var(--brand); display: inline-flex; }
.eyebrow__plus .plus-icon { width: 100%; height: 100%; }

.plus-icon { fill: currentColor; width: 1em; height: 1em; }
.arrow-icon { width: 1em; height: 1em; flex: none; transition: transform 0.4s var(--ease-out); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color 0.35s ease, background-color 0.35s ease, transform 0.5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--brand); transform: translateY(101%); transition: transform 0.5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: #0d1013; }
.btn:hover .arrow-icon { transform: rotate(45deg); }
.btn--brand { --btn-bg: var(--brand); --btn-fg: #0d1013; }
.btn--brand::before { background: var(--on-dark); }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; }
.btn--glass {
  --btn-bg: rgb(255 255 255 / 0.08); --btn-fg: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.25);
  backdrop-filter: blur(10px);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow span { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--back:hover span { transform: translateX(-4px); }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px currentColor; opacity: 0.8;
}

/* ==========================================================================
   NAVIGATION — full bar at the top, morphs into a liquid glass pill on scroll
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; pointer-events: none;
  color: var(--ink);
  transition: color 0.4s ease;
}
.nav.is-inverse { color: var(--on-dark); }
.nav__bar {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(100%, 1720px);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-radius: 0;
  transition:
    width 0.75s var(--ease-out),
    height 0.6s var(--ease-out),
    padding 0.6s var(--ease-out),
    margin 0.7s var(--ease-spring),
    border-radius 0.6s var(--ease-out);
}
.nav.is-compact .nav__bar {
  width: min(100% - 24px, 1080px);
  height: 64px;
  margin-top: 12px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
}

/* The glass itself — clear lens with refracting, colour-splitting edges (see initGlass in site.js) */
.nav__glass {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
  background: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 0 2px 1px rgb(0 0 0 / 0.14),
    inset 0 0 10px 4px rgb(0 0 0 / 0.07),
    inset 0 1px 0 rgb(255 255 255 / 0.65),
    inset 0 -1px 0 rgb(255 255 255 / 0.25),
    0 4px 16px rgb(17 17 26 / 0.06),
    0 8px 24px rgb(17 17 26 / 0.06),
    0 16px 56px rgb(17 17 26 / 0.08);
  opacity: 0; transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out), background 0.4s ease;
}
.nav.is-compact .nav__glass { opacity: 1; transform: none; }
.has-refraction .nav__glass {
  background: rgb(255 255 255 / 0.3);
  -webkit-backdrop-filter: url(#dp-glass) blur(2.5px) saturate(1.5) brightness(1.04);
  backdrop-filter: url(#dp-glass) blur(2.5px) saturate(1.5) brightness(1.04);
}
/* specular rim (its angle follows scrolling on Safari / iPhone, see --glass-a) */
.nav__glass::before, .to-top__glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(calc(115deg + var(--glass-a, 0deg)), rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.05) 30%, rgb(255 255 255 / 0) 60%, rgb(255 255 255 / 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.8;
}
.nav__glass::after, .to-top__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 160% at var(--glass-x, 50%) -60%, rgb(255 255 255 / 0.35), transparent 55%);
  mix-blend-mode: soft-light;
}
/* Safari / iPhone (no SVG refraction): a clearer middle, and a lens band around the rim that
   blurs, brightens and saturates more, with faint red / blue fringes, like the edge of a lens */
html:not(.has-refraction) .nav__glass, html:not(.has-refraction) .to-top__glass {
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(4px) saturate(170%) brightness(1.05);
  backdrop-filter: blur(4px) saturate(170%) brightness(1.05);
}
html:not(.has-refraction) .nav.is-inverse .nav__glass, html:not(.has-refraction) .to-top.is-inverse .to-top__glass { background: rgb(16 19 23 / 0.3); }
.glass-lens {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 7px;
  -webkit-backdrop-filter: blur(12px) saturate(230%) brightness(1.14) contrast(1.06);
  backdrop-filter: blur(12px) saturate(230%) brightness(1.14) contrast(1.06);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  box-shadow: inset 2px 0 1px -1px rgb(255 70 130 / 0.35), inset -2px 0 1px -1px rgb(60 170 255 / 0.35),
              inset 0 2px 1px -1px rgb(255 255 255 / 0.55), inset 0 -2px 1px -1px rgb(255 255 255 / 0.2);
}
.to-top .glass-lens { padding: 6px; }
.nav__shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px circle at var(--gx, 20%) var(--gy, -30%), rgb(255 255 255 / 0.45), transparent 65%);
  mix-blend-mode: overlay; opacity: 0.8; transition: opacity 0.4s;
}
.nav.is-inverse .nav__glass { background: rgb(16 19 23 / 0.28); }
.has-refraction .nav.is-inverse .nav__glass { background: rgb(16 19 23 / 0.42); }
.nav.is-inverse .nav__glass::before { opacity: 0.45; }
.nav.is-inverse .nav__shine { opacity: 0.3; }
/* text on clear glass needs a little lift */
.nav.is-compact .nav__link, .nav.is-compact .nav__lang { text-shadow: 0 0 12px var(--paper), 0 0 2px var(--paper); }
.nav.is-compact.is-inverse .nav__link { text-shadow: 0 0 12px rgb(0 0 0 / 0.6); }

/* Logo */
.nav__logo { display: block; flex: none; width: 168px; transition: width 0.6s var(--ease-out), opacity 0.3s; }
.nav.is-compact .nav__logo { width: 132px; }
.logo-svg { width: 100%; height: auto; overflow: visible; }
.logo-svg .lg-word { fill: currentColor; }
.logo-svg .lg-design, .logo-svg .lg-plus { fill: var(--brand); }
.logo-svg .lg-plus { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 0.8s var(--ease-spring); }
.nav__logo:hover .lg-plus { transform: rotate(180deg); }
html.intro .nav__logo { opacity: 0; }

/* Links */
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  border-radius: 999px;
}
.nav.is-compact .nav__link { font-size: 17px; }
.nav__link { isolation: isolate; }
.nav__link-txt { position: relative; display: inline-block; line-height: 1.3; }
.nav__plus {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  color: var(--plus-c, var(--brand)); pointer-events: none;
  transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) rotate(var(--fr, -90deg)) scale(var(--fs, 0));
}
.nav__plus .plus-icon { width: 100%; height: 100%; display: block; }
.nav__link:nth-child(1) { --plus-c: var(--menu-work); }
.nav__link:nth-child(2) { --plus-c: var(--menu-services); }
.nav__link:nth-child(3) { --plus-c: var(--menu-contact); }
.nav__link.is-active::before {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--brand);
}

/* Tools */
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__lang {
  display: inline-flex; padding: 3px; border-radius: 999px; gap: 2px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.nav.is-inverse .nav__lang { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); }
.nav__lang a {
  display: grid; place-items: center; height: 28px; min-width: 34px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.6; transition: opacity 0.2s, background 0.3s;
}
.nav__lang a:hover { opacity: 1; }
.nav__lang a.is-active { background: currentColor; opacity: 1; }
.nav__lang a.is-active { color: var(--paper); background: var(--ink); }
.nav.is-inverse .nav__lang a.is-active { color: #0d1013; background: var(--on-dark); }

.nav__cta { height: 44px; padding: 0 18px; font-size: 14px; }
.nav.is-inverse .nav__cta { --btn-bg: var(--on-dark); --btn-fg: #0d1013; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  /* frosted glass: a lighter veil over a heavier blur, with a soft sheen from the top */
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.04) 45%, transparent),
    color-mix(in srgb, var(--paper) 70%, transparent);
  -webkit-backdrop-filter: blur(48px) saturate(175%) brightness(1.04);
  backdrop-filter: blur(48px) saturate(175%) brightness(1.04);
  opacity: 0; transition: opacity 0.4s ease;
}
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
/* a finger sliding over the words plays with the pluses (site.js plusFollow), so the list itself
   does not pan or zoom; a tap still opens a link */
.menu__links { touch-action: none; }
.menu__links a {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--display); font-weight: 900; text-transform: lowercase; letter-spacing: -0.02em; font-size: clamp(48px, 13vw, 92px); line-height: 1;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease, color 0.2s;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
/* On hover the plus leaves its place and travels through the word, seen only inside the
   letters: the real plus is cut off where the word begins, and from there on a copy of the
   word shows it through its glyphs (background-clip: text). See plusFollow in site.js. */
.menu__links a { position: relative; --gap: 12px; }
.menu__links a[aria-current="page"] { --ps: 1.2; }
.menu__plus {
  pointer-events: none;
  display: inline-flex; flex: none; width: clamp(13px, 0.24em, 20px); height: clamp(13px, 0.24em, 20px); margin-top: 0.3em;
  color: var(--plus-c, var(--brand));
  clip-path: inset(-2em calc(-1 * var(--gap)) -2em -2em);   /* ends where the word starts */
}
.menu__plus .plus-icon {
  width: 100%; height: 100%;
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--pr, 0deg)) scale(var(--ps, 1));
  will-change: transform;
}
.menu__txt { position: relative; }
/* a copy of a label whose glyphs show a plus painted as their background (see paintTextPlus) */
.text-plus {
  position: absolute; inset: -0.25em; padding: 0.25em; white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none;
  -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu__sketch {
  position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 12px 0; color: var(--ink); touch-action: none;
}
/* the smooth 3D twin, seen only through a soft lens around the pointer */
.menu__sketch-3d {
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  --mx: 50%; --my: 50%; --lens-r: clamp(110px, 37vw, 165px);
  opacity: 0;
  /* long, eased falloff: the 3D fades out gradually towards the rim */
  -webkit-mask-image: radial-gradient(circle var(--lens-r) at var(--mx) var(--my), #000 0%, rgb(0 0 0 / 0.92) 18%, rgb(0 0 0 / 0.72) 38%, rgb(0 0 0 / 0.44) 58%, rgb(0 0 0 / 0.18) 78%, rgb(0 0 0 / 0.05) 91%, transparent 100%);
  mask-image: radial-gradient(circle var(--lens-r) at var(--mx) var(--my), #000 0%, rgb(0 0 0 / 0.92) 18%, rgb(0 0 0 / 0.72) 38%, rgb(0 0 0 / 0.44) 58%, rgb(0 0 0 / 0.18) 78%, rgb(0 0 0 / 0.05) 91%, transparent 100%);
  transition: opacity 0.6s ease;
}
.menu__sketch.is-lens .menu__sketch-3d { opacity: 1; }
.menu__sketch-3d .gl-plus-canvas { inset: 0; width: 100%; height: 100%; }
.plus-sketch { width: min(100%, 340px); height: 100%; max-height: 300px; overflow: visible; }
.plus-sketch path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.plus-sketch .ps-guides path { stroke: var(--brand); stroke-width: 0.8; opacity: 0.4; }
.plus-sketch .ps-line path { stroke: currentColor; stroke-width: 1.5; opacity: 0.82; }
.plus-sketch .ps-line2 path { stroke: currentColor; stroke-width: 0.7; opacity: 0.4; }
.plus-sketch .ps-hatch path { stroke: currentColor; stroke-width: 0.7; opacity: 0.38; }
.plus-sketch .ps-fill { fill: var(--paper); opacity: 0; }
.plus-sketch .ps-face--front .ps-fill { fill: color-mix(in srgb, var(--brand) 9%, var(--paper)); }
/* drawn in like a pencil sketch whenever the menu opens */
.menu.is-open .plus-sketch path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.2, 1); transition-delay: calc(320ms + var(--d, 0) * 45ms); }
.menu.is-open .plus-sketch .ps-guides path { transition-duration: 1.3s; transition-delay: calc(200ms + var(--d, 0) * 70ms); }
.menu.is-open .plus-sketch .ps-hatch path { transition-duration: 0.35s; transition-delay: calc(900ms + var(--d, 0) * 25ms); }
.menu.is-open .plus-sketch .ps-fill { opacity: 1; transition: opacity 0.6s ease 0.5s; }
@media (prefers-reduced-motion: reduce) { .plus-sketch path { stroke-dashoffset: 0; } .plus-sketch .ps-fill { opacity: 1; } }
@media (max-height: 560px) { .menu__sketch { visibility: hidden; } }

.menu__social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; }
.menu__social a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; transition: color 0.2s; }
.menu__social a:hover { color: var(--brand-ink); }
.menu__social .arrow-icon { width: 13px; height: 13px; opacity: 0.6; }
.menu__ic { display: inline-flex; width: 19px; height: 19px; color: var(--ic); transition: transform 0.6s var(--ease-spring); }
.menu__ic .ui-icon { width: 100%; height: 100%; }
.menu__social a:hover .menu__ic { transform: translateY(-2px) rotate(-8deg) scale(1.12); }
.menu__legal {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  font-size: 13px; font-weight: 500; color: var(--muted); text-align: center;
}
.menu__legal span { color: var(--brand); font-weight: 700; }
.menu__legal a { transition: color 0.2s; }
.menu__legal a:hover, .menu__legal a[aria-current="page"] { color: var(--ink); }

/* Legal pages */
.legal {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 760px); gap: clamp(32px, 6vw, 96px);
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}
.legal__nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 10px; }
.legal__nav a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.legal__nav a:hover, .legal__nav a[aria-current="page"] { color: var(--ink); }
.legal__plus { display: inline-flex; width: 10px; height: 10px; color: var(--brand); opacity: 0; transform: scale(0.4) rotate(-90deg); transition: opacity 0.3s, transform 0.5s var(--ease-spring); }
.legal__plus .plus-icon { width: 100%; height: 100%; }
.legal__nav a:hover .legal__plus, .legal__nav a[aria-current="page"] .legal__plus { opacity: 1; transform: none; }
.legal__date { margin-top: 14px; font-size: 13px; color: var(--muted); }
.legal__section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal__section:first-child { border-top: 0; padding-top: 0; }
.legal__section h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; }
.legal__section h2 small { font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.legal__section p, .legal__section li { font-size: 16px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.legal__section p + p { margin-top: 12px; }
.legal__section ul { display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; }
.legal__section li { position: relative; padding-left: 22px; }
.legal__section li::before { content: "+"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--brand); }
.legal__section a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__section a:hover { color: var(--ink); }
.legal__section strong { color: var(--ink); font-weight: 650; }
.legal__btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color 0.25s, color 0.25s;
}
.legal__btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 820px) {
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .legal__date { width: 100%; margin-top: 4px; }
}

@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__tools { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --nav-h: 72px; }
  .nav__logo { width: 140px; }
  .nav.is-compact .nav__bar { width: calc(100% - 16px); height: 58px; margin-top: 8px; padding: 0 6px 0 18px; }
  .nav.is-compact .nav__logo { width: 120px; }
  .nav__lang a { min-width: 30px; padding: 0 6px; }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
html.intro body::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: #0d1013; }
html.intro-built body::after { display: none; }
.intro-overlay {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden;
  background: #0d1013; color: #eceeea; cursor: pointer;
}
.intro-overlay .intro-logo { position: relative; transform-origin: 0 0; }
.intro-overlay .logo-svg { overflow: visible; }
.intro-overlay .lg-word path, .intro-overlay .lg-design path { transform-box: fill-box; }
.intro-skip {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; color: #9aa2aa;
  animation: intro-hint 0.6s ease 1.6s forwards;
}
@keyframes intro-hint { to { opacity: 0.7; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  /* full screen on landscape screens, but on tall / portrait windows it follows the
     content instead of leaving a big gap between the headline and the info row */
  --sea-h: clamp(250px, 19vw, 324px);   /* the sea card's height when open */
  min-height: min(100svh, calc(56vw + 420px));
  transition: min-height 1.3s var(--ease-out);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  --hero-pb: 0px;    /* the sea card runs to the hero's bottom edge, the logo strip's top line */
  padding: var(--nav-h) var(--gutter) var(--hero-pb);
  /* only sideways: the weather legend hangs half below the hero on the logo strip's line */
  overflow-x: clip;
}
/* the plus is cut off at the hero's edges by a layer of its own */
.hero__plus-clip { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
/* closed (the eye in the weather legend): the card folds up into its top rule and the hero is
   shorter by the same amount, so the rule stays where it is and the card slides down from it */
.js .hero.is-sea-closed { min-height: calc(min(100svh, calc(56vw + 420px)) - var(--sea-h)); }
/* the weather and the eye, centred on the line above the logo strip (the card's top rule,
   which lies on the strip's own line while the card is closed) */
.hero__note {
  position: absolute; z-index: 5; top: .5px; left: 50%; transform: translate(-50%, -66.667%); white-space: nowrap;   /* two thirds above the line */
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 4px 8px 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 18px -10px rgb(13 16 19 / 0.35);
}
/* a thin rule between the weather and the eye */
.hero__note-sep { width: 1px; height: 16px; margin-left: 2px; background: var(--line-strong); }
/* the eye: shut while the sea card is closed, open while it shows */
.hero__eye {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.2s ease;
}
.hero__eye:hover { background: rgb(13 16 19 / 0.07); }
.hero__eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.hero__eye svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hero__eye g { transform-origin: 12px 12px; transition: opacity 0.25s ease, transform 0.35s var(--ease-out); }
.hero__eye-open { opacity: 0; transform: scaleY(0.2); }
/* the shut lid sits low in its box: lift it to the middle */
.hero__eye-shut { transform: translateY(-2px); }
.hero__eye[aria-expanded="true"] .hero__eye-open { opacity: 1; transform: none; }
.hero__eye[aria-expanded="true"] .hero__eye-shut { opacity: 0; transform: scaleY(0.4) translateY(-4px); }
/* 2. a blink now and then while it is open (site.js adds .is-blink) */
.hero__eye.is-blink .hero__eye-open { animation: eye-blink 0.22s ease-in-out; }
/* closed, it peeks now and then: the lids part halfway and the pupil looks at the pointer (site.js) */
.hero__eye-pupil { transition: transform 0.14s ease-out !important; }
.hero__eye.is-peek .hero__eye-open { opacity: 1; transform: scaleY(0.52); transition: opacity 0.18s ease, transform 0.4s var(--ease-out); }
.hero__eye.is-peek .hero__eye-shut { opacity: 0; transform: scaleY(0.6) translateY(-1px); }
@keyframes eye-blink { 45%, 55% { transform: scaleY(0.08); } }
.hero__note time { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3.4); opacity: 0; } }

.hero__title {
  position: relative; z-index: 2;
  font-size: clamp(64px, 15.2vw, 264px);
  /* the same calm space under the menu at every width: the gap to the tops of the letters
     grows only a little (56 → 88px), less the room the face leaves above them (~0.18em) */
  margin-top: calc(clamp(56px, 2.5vw + 44px, 88px) - 0.18em);
}
.hero__plus {
  position: absolute; z-index: 3; pointer-events: none;
  right: clamp(-12vw, -6vw, -40px);
  top: calc(var(--nav-h) + 2vw);
  width: min(58vw, 92svh);
  aspect-ratio: 1;
  color: var(--brand);
  mix-blend-mode: var(--plus-blend);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}
.hero__plus-spin {
  width: 100%; height: 100%;
  transform: rotate(var(--rot, 0deg)) scale(var(--s, 1));
}
.hero__plus-svg { width: 100%; height: 100%; }
.js .hero__plus-spin { --s: 0; }
.hero__plus-spin.is-entering { animation: plus-in 1.6s var(--ease-out) both; }
@keyframes plus-in {
  from { transform: rotate(-200deg) scale(0); }
  to { transform: rotate(var(--rot, 0deg)) scale(1); }
}

/* No z-index of its own: the sea underneath (z 1) sits below the hero plus (z 3) while the
   text (z 4) stays above it. The band's text takes light or dark ink from the scene (sea.js). */
.hero__bottom {
  position: relative;
  display: grid; grid-template-columns: 1fr minmax(260px, 400px); align-items: end; gap: 32px;
  /* tall enough to show the sky, the islands and the sea above the text, which sits at the
     bottom (on phones the facts move up under the weather legend, see the media query) */
  height: var(--sea-h); transition: height 1.3s var(--ease-out);
}
.js .is-sea-closed .hero__bottom { height: 0; transition-duration: 0.9s; transition-delay: 0.32s; }
.js .hero.is-sea-closed { transition-duration: 0.9s; transition-delay: 0.32s; }
/* ink per text block, light or dark after what the sea scene draws behind it (sea.js) */
.hero__meta, .hero__intro { position: relative; z-index: 4; }
.hero__meta, .hero__intro p, .hero__actions .link-arrow {
  --band-ink: var(--ink); --band-muted: rgb(13 16 19 / 0.68);
  color: var(--band-ink); text-shadow: 0 0 12px rgb(232 228 218 / 0.6), 0 0 2px rgb(232 228 218 / 0.45);
  transition: color 1.2s ease, text-shadow 1.2s ease;
}
.hero__meta.on-dark, .hero__intro p.on-dark, .hero__actions .link-arrow.on-dark {
  --band-ink: #f4f1ea; --band-muted: rgb(244 241 234 / 0.78);
  text-shadow: 0 1px 2px rgb(5 10 20 / 0.35), 0 0 16px rgb(5 10 20 / 0.45);
}
.hero__bottom .hero__meta dt { color: var(--band-muted); transition: color 1.2s ease; }
.hero__actions .btn { text-shadow: none; height: 44px; padding: 0 20px; font-size: 14px; }
.hero__actions .btn--ink.on-dark { --btn-bg: #f4f1ea; --btn-fg: #0d1013; }
.hero__sea {
  position: absolute; z-index: 1; top: 0; height: calc(var(--sea-h) + var(--hero-pb));
  left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
  background: #05070a; opacity: 0; transition: opacity 1.4s ease 0.3s, clip-path 1.3s var(--ease-out);
  clip-path: inset(0 0 0 0);
}
.hero__sea.is-on { opacity: 1; }
.js .is-sea-closed .hero__sea { clip-path: inset(0 0 100% 0); transition-duration: 1.4s, 0.9s; transition-delay: 0.3s, 0.32s; }
/* the eyelids: the scene shows through an almond that opens from a slit in the middle once
   the black card is down and the page has stopped gliding to it (site.js adds .is-sea-seeing),
   and shuts again before the card folds up */
.hero__sea-view { position: absolute; inset: 0; }
.js .hero__sea-view, .js .hero__sea::after {
  clip-path: ellipse(64% 0% at 50% 50%);
  transition: clip-path 0.34s cubic-bezier(0.5, 0, 0.75, 0), filter 0.34s ease-in;
}
.js .hero__sea-view { filter: blur(16px); }
.js .is-sea-seeing .hero__sea-view, .js .is-sea-seeing .hero__sea::after {
  clip-path: ellipse(76% 76% at 50% 50%);
  transition: clip-path 1.3s cubic-bezier(0.45, 0, 0.2, 1);
}
/* ...and comes into focus as they open, settling just after (like eyes adjusting) */
.js .is-sea-seeing .hero__sea-view { filter: blur(0); transition: clip-path 1.3s cubic-bezier(0.45, 0, 0.2, 1), filter 1.7s cubic-bezier(0.3, 0, 0.2, 1) 0.1s; }
@media (prefers-reduced-motion: reduce) {
  .js .hero__sea-view, .js .hero__sea::after, .js .is-sea-seeing .hero__sea-view, .js .is-sea-seeing .hero__sea::after { transition-duration: 0.01s; transition-delay: 0s; }
}
/* the card's top rule: the same line as the logo strip's (colour and faded ends), so the open
   card sits between two of them. Closed, it lies on the strip's line and is hidden, so the
   line does not draw twice; opening, the strip's line moves down with the card and this one
   stays up with the weather legend */
.hero__bottom::before {
  content: ""; position: absolute; z-index: 2; top: 0; height: 1px;
  left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); background: var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.js .is-sea-closed .hero__bottom::before { opacity: 0; transition: opacity 0.2s ease 1.1s; }
/* the scene runs to the card's bottom edge with no fade (sea.js reads these stops for the ink) */
.hero__sea { --fade-top: 0%; --fade-bottom: 0%; }
/* a soft wash in the scene's sea colour behind the text keeps it readable on busy frames */
.hero__sea::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--sea-scrim, transparent), transparent 55%, var(--sea-scrim, transparent));
}
.hero__sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the moon's disc, drawn sharp over the scene (sea.js) */
.hero__moon { position: absolute; top: 0; left: 0; display: block; pointer-events: none; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 44px; }
/* the facts: small tracked labels over the values, both in Instrument Sans */
.hero__meta dt { font-family: "Instrument Sans", var(--font); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero__meta dd { font-family: "Instrument Sans", var(--font); font-weight: 500; font-size: 23px; line-height: 1.15; letter-spacing: -0.01em; }
/* the intro line, the button and the link in the same Instrument Sans as the facts */
.hero__intro p, .hero__actions .btn, .hero__actions .link-arrow { font-family: "Instrument Sans", var(--font); }
.hero__intro p { font-size: 16px; line-height: 1.5; margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

@media (max-width: 860px) {
  .hero, .js .hero.is-sea-closed { min-height: auto; --sea-h: clamp(230px, 68vw, 290px); }
  .hero__title { font-size: clamp(56px, 17vw, 140px); }
  .hero__plus { width: 78vw; right: -26vw; top: calc(var(--nav-h) + 40px); }
  .hero__bottom { grid-template-columns: 1fr; gap: 0; }
  .hero__meta { margin-bottom: clamp(84px, 28vw, 130px); }
  /* phones: the three facts side by side on one row, type scaled to the screen width
     (the three values are ~26em wide together) */
  .hero__meta { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
  .hero__meta > div { min-width: 0; }
  .hero__meta dt { font-size: clamp(8px, 2.3vw, 11px); letter-spacing: 0.1em; margin-bottom: 2px; }
  .hero__meta dd { font-size: clamp(10px, calc((100vw - 2 * var(--gutter) - 20px) / 25), 20px); white-space: nowrap; }
  .hero__intro p { font-size: 15px; margin-bottom: 16px; }
  .hero__actions { gap: 16px; }
  .hero__actions .btn { height: 42px; padding: 0 18px; }
  .hero__actions .link-arrow { font-size: 15px; }
}

/* WebGL glass plus: the canvas replaces the flat SVG once it is running */
.gl-plus-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; }
.gl-on { mix-blend-mode: normal !important; }
.gl-on > :not(canvas) { visibility: hidden; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.no-js .marquee__track, .reduced-motion .marquee__track { animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__list { display: flex; align-items: center; gap: clamp(40px, 5vw, 80px); padding-right: clamp(40px, 5vw, 80px); }
.client-logo { display: grid; place-items: center; transition: transform 0.5s var(--ease-spring); }
.client-logo { height: 46px; }
.client-logo img { height: var(--lh, 46px); width: auto; max-width: none; }
.client-logo:hover { transform: scale(1.08); }
/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 96px);
}
.section-head--light { align-items: center; margin-bottom: clamp(24px, 3vw, 48px); }
.section-title { font-size: clamp(56px, 10.5vw, 180px); }

/* Dark rounded panel with the selected work */
.work-panel, .process--dark, .cta {
  margin: 12px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
  --muted: var(--on-dark-muted);
  --line: rgb(236 238 234 / 0.14);
  --line-strong: rgb(236 238 234 / 0.3);
  --brand-ink: #5ccbf3;
  --ink: var(--on-dark);
}
.work-panel { padding: clamp(40px, 7vw, 120px) var(--gutter) clamp(48px, 8vw, 140px); }

.work-panel__head { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; margin-bottom: clamp(48px, 6vw, 96px); }
.work-panel__title { font-size: clamp(64px, 12vw, 210px); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 88px) clamp(16px, 2vw, 32px); }
.tile { display: flex; flex-direction: column; gap: 20px; }
.tile__media {
  --rx: 0deg; --ry: 0deg; --lift: 0%;
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 11; border-radius: var(--radius-sm);
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--t2) 85%, #fff 15%), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, var(--t1), transparent 70%),
    linear-gradient(160deg, var(--t1), var(--t2));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.tile__media::before { /* fine grain so flat brand gradients feel printed */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tile__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.28), transparent 60%);
}
.tile__media:hover .tile__glow { opacity: 1; }
.tile__num {
  position: absolute; left: 18px; top: 14px; z-index: 2; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.8); mix-blend-mode: difference;
}
.tile__window {
  position: absolute; z-index: 2; left: 8%; right: 8%; top: 11%;
  border-radius: 12px 12px 0 0; overflow: hidden; background: #0d1013;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.12);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out);
}
.tile__media:hover .tile__window { --lift: -3%; }
.tile__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #1b2026; }
.tile__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.22); }
.tile__bar i:first-child { background: #ff5f57; } .tile__bar i:nth-child(2) { background: #febc2e; } .tile__bar i:nth-child(3) { background: #28c840; }
.tile__url {
  margin: 0 auto; transform: translateX(-21px); font-size: 11px; color: rgb(255 255 255 / 0.6); letter-spacing: 0.02em;
  padding: 2px 12px; border-radius: 6px; background: rgb(255 255 255 / 0.06);
}
.tile__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0d1013; }
.tile__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 24px; align-items: start; }
.tile__name { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tile__title { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.tile__blurb { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.35; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile__meta { grid-template-columns: 1fr; }
}

/* Manifesto with words lighting up on scroll */
.manifesto { padding: clamp(80px, 12vw, 200px) var(--gutter); max-width: 1500px; }
.manifesto .eyebrow { margin-bottom: 32px; }
.manifesto__text {
  font-size: clamp(30px, 4.5vw, 74px); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em;
  text-wrap: pretty;
}
.manifesto__text .w { opacity: 0.16; transition: opacity 0.35s ease, color 0.35s ease; }
.manifesto__text .w.is-on { opacity: 1; }
.manifesto__text .w.is-key { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand-ink); letter-spacing: 0; }
.no-js .manifesto__text .w, .reduced-motion .manifesto__text .w { opacity: 1; }

/* Service rows */
.services { padding: 0 var(--gutter) clamp(44px, 5.5vw, 88px); }
.service-rows { border-bottom: 1px solid var(--line-strong); }
.service-row { border-top: 1px solid var(--line-strong); }
.service-row__link {
  position: relative; display: grid; grid-template-columns: 64px 1fr minmax(220px, 380px) 56px; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 40px) 0; isolation: isolate;
}
.service-row__link::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--brand);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.6s var(--ease-out);
}
/* hover: the row's rules (its own top line and the next row's, i.e. its bottom) grow out to the
   screen edges with the fill. The fill rises from the bottom, so the bottom rule outruns the top
   one; on leave both draw back in once the fill has drained. Only the growing ends are drawn
   (four 1px strips in the gutters), in a solid twin of --line-strong on paper, so nothing doubles
   up over the static borders or where two rows' ends briefly overlap. */
@property --ext-t { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ext-b { syntax: "<length>"; inherits: false; initial-value: 0px; }
.service-row__link::after {
  content: ""; position: absolute; top: -1px; bottom: -1px; pointer-events: none;
  --g: var(--gutter); left: calc(var(--g) * -1); right: calc(var(--g) * -1);
  --ext-t: 0px; --ext-b: 0px;
  --rule: linear-gradient(color-mix(in srgb, var(--ink) 30%, var(--paper)) 0 0);
  background: var(--rule), var(--rule), var(--rule), var(--rule);
  background-repeat: no-repeat;
  background-size: var(--ext-t) 1px, var(--ext-t) 1px, var(--ext-b) 1px, var(--ext-b) 1px;
  background-position:
    left calc(var(--g) - var(--ext-t)) top 0, right calc(var(--g) - var(--ext-t)) top 0,
    left calc(var(--g) - var(--ext-b)) bottom 0, right calc(var(--g) - var(--ext-b)) bottom 0;
  transition: --ext-t 0.6s var(--ease-out) 0.6s, --ext-b 0.6s var(--ease-out) 0.6s;   /* leave: after the fill */
}
.service-row__num { font-size: 14px; font-weight: 600; color: var(--muted); align-self: start; margin-top: 0.6em; transition: color 0.3s; }
.service-row__title { font-size: clamp(40px, 6.2vw, 108px); transition: transform 0.6s var(--ease-out); }
.service-row__text { color: var(--muted); transition: color 0.3s; }
.service-row__icon {
  justify-self: end; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--brand-ink);
  transition: transform 0.7s var(--ease-spring), background 0.3s, color 0.3s;
}
.service-row__icon .plus-icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .service-row__link:hover::before { transform: none; }
  .service-row__link:hover::after {
    --ext-t: var(--gutter); --ext-b: var(--gutter);
    transition: --ext-t 0.8s var(--ease-out) 0.12s, --ext-b 0.45s var(--ease-out);
  }
  .service-row__link:hover { color: #0d1013; }
  .service-row__link:hover .service-row__title { transform: translateX(18px); }
  .service-row__link:hover .service-row__num, .service-row__link:hover .service-row__text { color: #0d1013; }
  .service-row__link:hover .service-row__icon { transform: rotate(135deg); background: #0d1013; color: var(--brand); }
}
@media (max-width: 860px) {
  .service-row__link { grid-template-columns: 1fr 44px; gap: 10px 16px; }
  .service-row__num { display: none; }
  .service-row__text { grid-column: 1 / -1; grid-row: 2; }
  .service-row__icon { grid-column: 2; grid-row: 1; width: 44px; height: 44px; }
}

/* Process */
.process { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.process .eyebrow { margin-bottom: clamp(32px, 4vw, 56px); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.step__num { font-size: clamp(64px, 7vw, 120px); color: var(--brand-ink); display: block; margin-bottom: 18px; }
.step__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 32ch; }
@media (max-width: 960px) { .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } }
@media (max-width: 560px) { .process__steps { grid-template-columns: 1fr; } }

/* CTA panel */
.cta { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 150px) var(--gutter); }
.cta__inner { position: relative; z-index: 1; }
.cta__title { font-size: clamp(64px, 14.4vw, 250px); margin-bottom: clamp(32px, 4vw, 56px); }
.cta__dots { font-style: normal; color: var(--on-dark); }
.cta__body { display: grid; grid-template-columns: minmax(0, 520px); gap: 28px; justify-items: start; }
.cta__body p { font-size: 19px; color: var(--on-dark-muted); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.cta__plus {
  position: absolute; right: -10vw; bottom: -18vw; width: min(62vw, 900px); aspect-ratio: 1; color: var(--brand);
  opacity: 0.95; mix-blend-mode: screen; pointer-events: none; z-index: 0;
  transform: rotate(var(--rot, 0deg));
}
.cta__plus .plus-icon { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .cta__plus { width: 90vw; right: -40vw; bottom: -30vw; opacity: 0.6; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: clamp(56px, 7vw, 100px) var(--gutter) 28px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: clamp(56px, 8vw, 120px); }
.footer__col .eyebrow { margin-bottom: 16px; }
.footer__col li { margin-bottom: 6px; }
.footer__col a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.footer__col a:hover { color: var(--brand-ink); }
.footer__col .arrow-icon { width: 14px; height: 14px; }
.footer__mark { display: block; color: var(--ink); margin-bottom: 28px; }
.footer__mark .logo-svg { width: 100%; height: auto; }
.footer__mark .lg-plus { transition: transform 1.2s var(--ease-spring); }
.footer__mark:hover .lg-plus { transform: rotate(270deg); }
.footer__mark .lg-word path { transform-box: fill-box; transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js .footer__mark:not(.is-in) .lg-word path { transform: translateY(40%); }
.js .footer__mark:not(.is-in) .lg-plus { transform: rotate(-180deg) scale(0); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer__mail-short { display: none; }
@media (max-width: 560px) {
  /* menu | legal, then contact | social; the e-mail link reads just "E-posta" so the social
     links keep their place next to it */
  .footer__cols { grid-template-columns: 1fr auto; gap: 36px 24px; }
  .footer__col--legal a, .footer__col--contact a { white-space: nowrap; }
  .footer__mail-full { display: none; }
  .footer__mail-short { display: inline; }
}
/* narrow phones (360px Androids): the legal and contact links may wrap, or the two columns
   run past the screen and the page pans sideways */
@media (max-width: 400px) {
  .footer__col--legal a, .footer__col--contact a { white-space: normal; }
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 120px)) var(--gutter) clamp(40px, 6vw, 80px); }
.page-hero .eyebrow, .page-hero .link-arrow--back { margin-bottom: 20px; }
.page-hero .link-arrow--back { display: inline-flex; margin-right: 24px; }
.page-hero__title { font-size: clamp(72px, 16vw, 280px); margin-bottom: clamp(24px, 3vw, 40px); }
.page-hero__count { font-family: var(--font); font-size: 0.18em; font-weight: 600; letter-spacing: 0; vertical-align: top; margin-left: 0.15em; color: var(--brand-ink); position: relative; top: 0.5em; }
/* A heading's count written as a sum (hero_sum() in bootstrap.php), revealing "= total"
   (counted up) on hover. .hero-sum is a zero-size anchor placed --sum-y (heading ems) below
   the top of the word, on a feature of its last letter; the sigma's waist is centred on it. */
.line--sum > span { position: relative; }
/* extra room above the line so the formula's upper limit is never cut by the reveal mask */
.line--sum { padding-top: 0.25em; margin-top: -0.25em; }
.hero-sum {
  position: absolute; left: 100%; top: var(--sum-y, 0.437em); width: 0; height: 0; margin-left: 0.1em;
  font-size: 1em; line-height: 1; letter-spacing: 0; text-transform: none;
  font-family: var(--display); font-weight: 400; color: var(--brand-ink); outline: none; cursor: default;
}
.hero-sum__in {
  position: absolute; left: 0; top: 0; transform: translateY(-50%);
  display: flex; align-items: center; white-space: nowrap; font-size: max(14px, 0.14em); font-variant-numeric: lining-nums;
}
/* the box is the glyph's ink height; the glyph is lifted so its waist sits at the box centre */
.hero-sum__sig { position: relative; top: -0.135em; display: block; font-size: 2.35em; height: 0.78em; line-height: 0.78em; }
.hero-sum__hi, .hero-sum__lo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.362em; line-height: 1.05; }
.hero-sum__hi { bottom: 100%; margin-bottom: 0.32em; }
.hero-sum__lo { top: 100%; margin-top: 0.9em; }
.hero-sum__lo i { font-style: italic; margin-right: 0.04em; }
.hero-sum__term { font-size: 1.9em; margin-left: 0.1em; line-height: 1; }
.hero-sum__term i { font-style: italic; }
.hero-sum__term sub { font-size: 0.5em; vertical-align: -0.3em; line-height: 0; margin-left: 0.04em; font-style: italic; }
.hero-sum__eq {
  display: inline-block; max-width: 0; overflow: hidden; font-size: 1.9em; line-height: 1.2;
  transition: max-width 0.55s var(--ease-out);
}
.hero-sum__eq > span {
  display: inline-block; padding-left: 0.28em; opacity: 0; transform: translateX(-0.4em);
  transition: opacity 0.35s ease, transform 0.55s var(--ease-out);
}
.hero-sum__n { display: inline-block; min-width: 1.15em; font-variant-numeric: tabular-nums lining-nums; }
.no-js .hero-sum:hover .hero-sum__eq, .no-js .hero-sum:focus .hero-sum__eq, .hero-sum.is-open .hero-sum__eq, .hero-sum.is-shown .hero-sum__eq { max-width: 3em; }
.no-js .hero-sum:hover .hero-sum__eq > span, .no-js .hero-sum:focus .hero-sum__eq > span, .hero-sum.is-open .hero-sum__eq > span, .hero-sum.is-shown .hero-sum__eq > span { opacity: 1; transform: none; transition-delay: 0.08s, 0s; }
.js .hero-sum { -webkit-tap-highlight-color: transparent; }
/* after the one-off show on load (site.js) it folds away slowly, so the count back down to 0
   can be read as it goes */
.hero-sum.is-hiding .hero-sum__eq { transition: max-width 0.8s cubic-bezier(0.6, 0, 0.4, 1) 0.3s; }
.hero-sum.is-hiding .hero-sum__eq > span { transition: opacity 0.6s ease 0.45s, transform 0.8s cubic-bezier(0.6, 0, 0.4, 1) 0.3s; }
.page-hero__lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 640px; color: var(--muted); }
.page-hero--404 { min-height: 80svh; position: relative; overflow: clip; }
.page-hero--404 .btn { margin-top: 32px; }
.nf-plus { position: absolute; right: -10vw; top: 10vh; width: 60vw; aspect-ratio: 1; color: var(--brand); mix-blend-mode: var(--plus-blend); transform: rotate(var(--rot, 0deg)); }
.nf-plus .plus-icon { width: 100%; height: 100%; }

/* Filters with a sliding pill */
.work-index { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }
.filters {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; margin-bottom: 40px;
  border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
}
.filters__pill {
  position: absolute; left: 0; top: 0; height: 0; width: 0; border-radius: 999px; background: var(--ink);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), height 0.3s;
}
.filters__btn {
  position: relative; z-index: 1; height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: color 0.35s;
}
.filters__btn sup { font-size: 10px; opacity: 0.6; margin-left: 2px; }
.filters__btn.is-active { color: var(--paper); }
.no-js .filters__btn.is-active { background: var(--ink); }
@media (max-width: 760px) {
  /* one row that scrolls sideways instead of wrapping inside the pill */
  .filters {
    display: flex; flex-wrap: nowrap; max-width: 100%; width: max-content;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters__btn { flex: none; white-space: nowrap; padding: 0 16px; }
}
/* the bar's scroll cues (site.js wraps the bar): at an end with more to scroll, the pill fades
   out under a round arrow in the paper tone; tapping it scrolls on */
.filters-wrap { position: relative; width: max-content; max-width: 100%; margin-bottom: 40px; }
.filters-wrap > .filters { margin-bottom: 0; }
/* while it scrolls the pill's paper and hairline are drawn by the wrapper, so the bar's content
   alone can fade out under the arrows (a mask) without fading the pill's edge with it */
.filters-wrap.can-prev, .filters-wrap.can-next { border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.filters-wrap.can-prev > .filters, .filters-wrap.can-next > .filters {
  background: transparent; box-shadow: none;
  -webkit-mask: linear-gradient(90deg, transparent var(--fade-l, 0px), #000 calc(var(--fade-l, 0px) * 2.4), #000 calc(100% - var(--fade-r, 0px) * 2.4), transparent calc(100% - var(--fade-r, 0px)));
  mask: linear-gradient(90deg, transparent var(--fade-l, 0px), #000 calc(var(--fade-l, 0px) * 2.4), #000 calc(100% - var(--fade-r, 0px) * 2.4), transparent calc(100% - var(--fade-r, 0px)));
}
.filters-wrap.can-prev > .filters { --fade-l: 30px; }
.filters-wrap.can-next > .filters { --fade-r: 30px; }
.filters__nav {
  position: absolute; z-index: 3; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -8px rgb(13 16 19 / 0.4);
  opacity: 0; pointer-events: none; transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.45s var(--ease-spring), background 0.3s;
}
.filters__nav svg { width: 15px; height: 15px; }
.filters__nav--prev { left: 8px; }
.filters__nav--next { right: 8px; }
.filters-wrap.can-prev .filters__nav--prev, .filters-wrap.can-next .filters__nav--next { opacity: 1; pointer-events: auto; transform: none; }
.filters__nav:hover { background: var(--brand-soft); }
.filters__nav:active { transform: scale(0.9); }
.filters-wrap.is-nudge .filters__nav--next svg { animation: filters-nudge 1.3s var(--ease-io) 2; }
@keyframes filters-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(3px); } 55% { transform: translateX(-1px); } }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.work-card[hidden], .gallery__item[hidden] { display: none; }
.work-card__media {
  display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; background: var(--paper-2);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: scale 0.9s var(--ease-out); }
.work-card__media:hover img { scale: 1.05; }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.work-card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.work-card__type { font-size: 13px; color: var(--muted); text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gallery__item a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: var(--paper-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease-out); }
.gallery__item a:hover img { scale: 1.06; }

/* Services page */
.service-blocks { padding: 0 var(--gutter) clamp(64px, 8vw, 120px); }
.service-block {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px;
  padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line-strong);
}
.service-block__head { position: sticky; top: 110px; align-self: start; }
.service-block__num { display: block; font-size: 24px; color: var(--brand-ink); margin-bottom: 12px; }
.service-block__title { font-size: clamp(52px, 7.4vw, 128px); }
.service-block__text { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; margin-bottom: 28px; }
.service-block__list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 500; transition: padding 0.4s var(--ease-out), color 0.3s;
}
.service-block__list li:hover { padding-left: 10px; color: var(--brand-ink); }
.service-block__plus { width: 12px; height: 12px; color: var(--brand); display: inline-flex; transition: transform 0.6s var(--ease-spring); }
.service-block__list li:hover .service-block__plus { transform: rotate(90deg); }
.service-block__plus .plus-icon { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block__head { position: static; }
}
.process--dark { padding: clamp(56px, 8vw, 120px) var(--gutter); }

.clients { padding: clamp(64px, 8vw, 120px) var(--gutter); }
.clients__lead { color: var(--muted); }
.clients__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients__grid li { display: grid; place-items: center; height: 140px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter) clamp(80px, 10vw, 140px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 32px; }
.contact__item .eyebrow { display: flex; margin-bottom: 10px; }
.contact__big {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(19px, 1.75vw, 26px); font-weight: 600; letter-spacing: -0.015em;
  transition: color 0.2s; word-break: break-word;
}
.contact__ic { display: inline-flex; width: 1.05em; height: 1.05em; flex: none; color: var(--ic, var(--brand)); transition: transform 0.6s var(--ease-spring); }
.contact__ic .ui-icon { width: 100%; height: 100%; }
.contact__big:hover .contact__ic { transform: translateY(-2px) rotate(-8deg) scale(1.1); }
.contact__big:hover { color: var(--brand-ink); }
.contact__item p { margin-bottom: 10px; }
.contact__place { display: flex; align-items: flex-start; gap: 12px; }
.contact__place .contact__ic { margin-top: 0.12em; width: 1.25em; height: 1.25em; }
.contact__maplink { margin-top: 14px; }
/* side by side: both columns share the row height, so the map always ends on the form card's
   bottom edge (taking whatever height is left, never below 220px); the "open in maps" link
   hangs just below it, outside the row, so it does not count towards that height */
@media (min-width: 901px) {
  .contact { align-items: stretch; }
  .contact__where { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .contact__where .contact__map { aspect-ratio: auto; flex: 1 1 0; min-height: 220px; }
  .contact__maplink { position: absolute; left: 0; top: 100%; }
}
.contact__map {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--paper-2);   /* same corners as the form card */
  box-shadow: 0 30px 60px -40px rgb(13 16 19 / 0.4);          /* same drop shadow as the form card (.glass-card) */
}
/* the card's hairline and top highlight, drawn over the map (inset shadows would sit under the iframe) */
.contact__map::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.5);
}
/* the embed's own credit bar is pushed below the rounded frame and clipped;
   the required OpenStreetMap credit is shown small in the corner instead */
.contact__map iframe { width: 100%; height: calc(100% + 72px); border: 0; filter: grayscale(1) contrast(1.05); }
.contact__credit {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; line-height: 1.4; color: var(--muted);
  background: rgb(255 255 255 / 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color 0.2s;
}
.contact__credit:hover { color: var(--ink); }
.contact__pin { position: absolute; left: 50%; top: calc(50% + 36px); width: 28px; height: 28px; margin: -14px 0 0 -14px; color: var(--brand); pointer-events: none; mix-blend-mode: multiply; animation: pin 3s var(--ease-io) infinite; }
.contact__pin .plus-icon { width: 100%; height: 100%; }
/* our own map (map.js, Leaflet): the plus is a marker on the address and moves with the map */
.contact__leaf { position: absolute; inset: 0; z-index: 0; background: var(--paper-2); font: inherit; }
.contact__leaf .leaflet-tile-pane { filter: grayscale(1) contrast(1.05); }
.contact__marker .contact__pin { position: static; display: block; margin: 0; }
/* until the map is up the plus has nowhere to sit, so it waits (the embed fallback has its own marker) */
.js [data-map]:not(.is-live) > .contact__pin { visibility: hidden; }
.contact__leaf .leaflet-control-zoom { border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgb(13 16 19 / 0.35); }
.contact__leaf .leaflet-control-zoom a { width: 32px; height: 32px; line-height: 30px; font: 500 20px/30px var(--font); color: var(--ink); background: rgb(255 255 255 / 0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom-color: var(--line); }
.contact__leaf .leaflet-control-zoom a:hover { background: #fff; }
.contact__leaf .leaflet-control-zoom a.leaflet-disabled { color: var(--muted); }
@keyframes pin { 50% { transform: rotate(90deg) scale(1.2); } }

.glass-card {
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3.4vw, 48px);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.5), 0 30px 60px -40px rgb(13 16 19 / 0.4);
}
.field { position: relative; margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 24px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat, transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 28px 0 10px; outline: none; resize: vertical;
  transition: background-size 0.5s var(--ease-out), border-color 0.3s;
}
.field input:focus, .field textarea:focus { background-size: 100% 2px; }
.field label {
  position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; font-size: 18px;
  transform-origin: 0 0; transition: transform 0.4s var(--ease-out), color 0.3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.72); color: var(--brand-ink);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #e2543b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { border: 0; padding: 0; margin: 28px 0 8px; }
.captcha legend { font-weight: 700; font-size: 15px; margin-bottom: 4px; padding: 0; }
.captcha__hint { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.captcha__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.captcha__row img { width: 160px; height: 58px; border-radius: 12px; object-fit: cover; }
.captcha__refresh { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 0.6s var(--ease-spring), background 0.3s; }
.captcha__refresh:hover { transform: rotate(180deg); background: var(--brand-soft); }
.captcha__refresh svg { width: 18px; height: 18px; }
/* waiting for a new code: the arrow turns round and round, the old image dims (site.js) */
.captcha__refresh.is-loading { cursor: progress; }
.captcha__refresh.is-loading svg { animation: captcha-spin 0.7s linear infinite; }
.captcha__row img { transition: opacity 0.25s ease; }
.captcha__row img.is-loading { opacity: 0.4; }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha__refresh.is-loading svg { animation-duration: 2s; } }
.field--captcha { min-width: 160px; margin-bottom: 0; }
.field--captcha input { text-transform: uppercase; letter-spacing: 0.2em; }
.contact-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.form-status { font-weight: 600; min-height: 1.5em; flex: 1; }
.form-status.is-error { color: #e2543b; }
.form-status.is-ok { color: var(--brand-ink); }
.contact-form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-form { order: -1; }
  .field-row { flex-direction: column; gap: 0; }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(8 10 12 / 0.9); color: #eceeea;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.35s ease, display 0.35s allow-discrete, overlay 0.35s allow-discrete;
}
.lightbox[open] { opacity: 1; display: grid; place-items: center; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 72px 72px 64px; }
.lightbox__stage > * { border-radius: 14px; box-shadow: 0 40px 80px -40px #000; animation: lb-in 0.6s var(--ease-out); }
@keyframes lb-in { from { transform: translateY(24px) scale(0.97); opacity: 0; } }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__stage iframe { border: 0; background: #000; }
.lightbox__stage .lb-video { width: min(100%, (100dvh - 150px) * 16 / 9); aspect-ratio: 16 / 9; height: auto; }
.lightbox__stage .lb-audio { width: min(100%, 720px); height: 400px; }
.lightbox__stage .lb-frame { width: 100%; height: 100%; background: #fff; }
.lightbox__caption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 14px; color: #9aa2aa; white-space: nowrap; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.3s, transform 0.5s var(--ease-spring);
}
.lightbox__close { top: 14px; right: 14px; }
.lightbox__close .plus-icon { width: 18px; height: 18px; transform: rotate(45deg); transition: transform 0.6s var(--ease-spring); }
.lightbox__close:hover { background: var(--brand); color: #0d1013; }
.lightbox__close:hover .plus-icon { transform: rotate(225deg); }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__nav:hover { background: rgb(255 255 255 / 0.2); }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) { .lightbox__stage { padding: 72px 12px 56px; } }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(42px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease calc(var(--d, 0) * 1ms), transform 1.1s var(--ease-out) calc(var(--d, 0) * 1ms);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split-lines] .line > span { opacity: 1; transform: none; }
  .js .hero__plus-spin { --s: 1; }
}

/* glass pluses own their rotation in 3D */
.cta__plus.gl-on, .nf-plus.gl-on { transform: none; opacity: 1; }
.cta__title, .cta__body { position: relative; z-index: 1; }
/* white copy of text that lies over the 3D plus (see whitenOver in site.js) */
.gl-whiten { position: absolute !important; margin: 0 !important; pointer-events: none; user-select: none; z-index: 2; clip-path: inset(50%); }
.gl-whiten, .gl-whiten * { color: #fff !important; }
/* a button over the plus turns white the same way (as it does on hover), its label stays dark */
.btn.gl-whiten { --btn-bg: var(--on-dark); background: var(--on-dark); }
.btn.gl-whiten, .btn.gl-whiten * { color: #0d1013 !important; }
.cta__plus.gl-on { width: min(48vw, 680px); right: -4vw; bottom: -16vw; }
@media (max-width: 860px) { .cta__plus.gl-on { width: 80vw; right: -30vw; bottom: -34vw; } }
/* the filter lives in an SVG the size of the glass, so its 100% units resolve to the bar */
.glass-defs, .nav__glass-defs { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: -1; }
.nav.is-compact .nav__logo .logo-svg { filter: drop-shadow(0 0 5px var(--paper)) drop-shadow(0 0 1px var(--paper)); }
.nav.is-compact.is-inverse .nav__logo .logo-svg { filter: drop-shadow(0 0 6px rgb(0 0 0 / 0.55)); }

/* grabbing the 3D plus */
html.gl-grab, html.gl-grab * { cursor: grab !important; }
html.gl-grabbing, html.gl-grabbing * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ==========================================================================
   FLOATING "BACK TO TOP" — liquid glass bead with a scroll-progress ring
   ========================================================================== */
.to-top {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom) + var(--lift, 0px));
  z-index: 95; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  opacity: 0; transform: translateY(28px) scale(0.7); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.7s var(--ease-spring), color 0.4s ease;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; animation: to-top-float 4.2s ease-in-out infinite; }
@keyframes to-top-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.to-top__glass {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 0;
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 0 2px 1px rgb(0 0 0 / 0.14),
    inset 0 0 10px 4px rgb(0 0 0 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    0 6px 18px rgb(17 17 26 / 0.1),
    0 16px 40px rgb(17 17 26 / 0.12);
  transition: background 0.4s ease, transform 0.6s var(--ease-spring);
}
.has-refraction .to-top__glass {
  background: rgb(255 255 255 / 0.2);
  -webkit-backdrop-filter: url(#dp-glass-top) blur(1px) saturate(1.5) brightness(1.04);
  backdrop-filter: url(#dp-glass-top) blur(1px) saturate(1.5) brightness(1.04);
}
.to-top.is-inverse { color: var(--on-dark); }
.to-top.is-inverse .to-top__glass { background: rgb(16 19 23 / 0.38); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; z-index: 1; }
.to-top__ring circle { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--p, 100); transition: stroke-dashoffset 0.15s linear; }
.to-top__arrow { position: relative; z-index: 1; width: 20px; height: 20px; transition: transform 0.5s var(--ease-spring); }
.to-top:hover .to-top__glass { transform: scale(1.08); }
.to-top:hover .to-top__arrow { transform: translateY(-4px); }
.to-top:active .to-top__glass { transform: scale(0.94); }
@media (max-width: 640px) { .to-top { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .to-top.is-shown { animation: none; } }

/* the dream phrase in the hero ("hayal gücü" / "imagination"): rises out of a rippling blur once (site.js) */
.dream { display: inline-block; will-change: filter, transform; transform-origin: 50% 70%; }



/* the "digital" word takes the TV interference */
.glitch { display: inline-block; will-change: filter, transform; }
/* the hero title's entrance, once (site.js titleFx): the plain words rise one after another,
   "dijital" and "hayal gücü" stay in place and appear through their own effects */
.js [data-hero-title].has-steps .line > span { transform: none; transition: none; }
.rise { display: inline-block; }
.js [data-hero-title].has-steps .rise { transform: translateY(150%); }
.js [data-hero-title].has-steps.is-in .rise { transform: none; transition: transform 1.15s var(--ease-out) var(--rd, 0ms); }
.js [data-hero-title].has-steps .glitch:not(.is-shown), .js [data-hero-title].has-steps .dream:not(.is-shown) { opacity: 0; }

/* hero weather note */
.hero__wx-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--brand-ink); }
.hero__wx-icon.is-wx { animation: wx-in 0.6s var(--ease-out) both; }
@keyframes wx-in { from { opacity: 0; transform: scale(0.6) rotate(-20deg); } }
.hero__wx { color: var(--ink); font-weight: 600; white-space: pre; }

/* footer menu: a small plus in each item's own colour */
.footer__menu-link { gap: 10px; }
.footer__plus { display: inline-flex; width: 11px; height: 11px; color: var(--plus-c, var(--brand)); flex: none; transition: transform 0.6s var(--ease-spring); }
.footer__plus .plus-icon { width: 100%; height: 100%; }
.footer__menu-link:hover .footer__plus { transform: rotate(90deg) scale(1.2); }

/* footer contact + social: line icons, each in its own colour */
.footer__ic-link { display: inline-flex; align-items: center; gap: 10px; }
.footer__ic { display: inline-flex; width: 17px; height: 17px; flex: none; color: var(--ic, var(--brand)); transition: transform 0.6s var(--ease-spring); }
.footer__ic .ui-icon { width: 100%; height: 100%; }
a.footer__ic-link:hover .footer__ic { transform: translateY(-2px) rotate(-8deg) scale(1.12); }
.footer__made { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   COOKIE CONSENT — frosted glass card, bottom left
   ========================================================================== */
.consent {
  position: fixed; left: clamp(14px, 2vw, 28px); bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom));
  z-index: 96; width: min(400px, calc(100vw - 28px));
  padding: 20px 20px 18px; border-radius: 26px; color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.12)),
    color-mix(in srgb, var(--paper) 62%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.55),
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 10px 30px rgb(17 17 26 / 0.1),
    0 24px 60px rgb(17 17 26 / 0.12);
  opacity: 0; transform: translateY(32px) scale(0.96); transform-origin: 0 100%;
  transition: opacity 0.4s ease, transform 0.8s var(--ease-spring);
}
.consent[hidden] { display: none; }
.consent.is-in { opacity: 1; transform: none; }
.consent__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.consent__plus { display: inline-flex; width: 12px; height: 12px; color: var(--brand); transition: transform 0.9s var(--ease-spring); }
.consent__plus .plus-icon { width: 100%; height: 100%; }
.consent.is-in .consent__plus { transform: rotate(180deg); }
.consent__text { font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 75%, transparent); }
.consent__text a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent__btn { justify-content: center; height: 44px; font-size: 14px; }
.consent__btn--reject { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
  /* the floating to-top bead waits until the banner is answered */
  html.consent-open .to-top.is-shown { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: opacity 0.3s ease; transform: none; } }
.footer__made .footer__ic { width: 18px; height: 18px; }
/* the umbrella stays still; a sun rises from below the sand line behind it */
.footer__made .ui-icon { overflow: visible; }
.footer__made .ic-sun { transform: translateY(19px); transition: transform 1.1s var(--ease-out); }
.footer__made .ic-sun path { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; transition: opacity 0.5s ease 0.5s; }
.footer__made:hover .ic-sun { transform: translateY(-4px); }
.footer__made:hover .ic-sun path { opacity: 1; }
