/* Lusarel Creative Studio — site styles
   Palette meanings: violet = tasarım, turquoise = köklerimiz (Türk taşı), yellow = fikir */
:root {
  --night: #15122E;
  --night-2: #1C1840;
  --night-line: #2C2850;
  --night-soft: #B9B4D6;
  --violet: #5B2EFF;
  --violet-hover: #4A1FF0;
  --teal: #14B0AC;
  --sun: #FFC233;
  --coral: #FF5B3A;
  --paper: #F6F3EE;
  --white: #FFFFFF;
  --ink: #15122E;
  --ink-soft: #4A4566;
  --line: #E2DCD2;
  --font: "Outfit", "Gilroy", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Theme tokens: light values. Brand-dark sections (hero, process, about, footer) use --night directly. */
  --bg: var(--paper);
  --bg-alt: var(--white);
  --surface: var(--white);
  --surface-2: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --accent-text: var(--violet);
  color-scheme: light;
}

/* Dark theme: follows the device setting unless the visitor picked a theme with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C1F;
    --bg-alt: #13112A;
    --surface: #1A1736;
    --surface-2: #221E44;
    --text: #F3F0EA;
    --text-soft: #B9B4D6;
    --border: #2C2850;
    --accent-text: #A18CFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0C1F;
  --bg-alt: #13112A;
  --surface: #1A1736;
  --surface-2: #221E44;
  --text: #F3F0EA;
  --text-soft: #B9B4D6;
  --border: #2C2850;
  --accent-text: #A18CFF;
  color-scheme: dark;
}
body { transition: background-color .4s var(--ease), color .4s var(--ease); }

/* Theme toggle (sun / moon) */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: transparent;
  color: var(--paper); cursor: pointer; display: grid; place-items: center; position: relative; z-index: 2; flex: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--sun); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s var(--ease); }
/* Shows the theme you can switch to: moon in light mode, sun in dark mode */
.theme-toggle .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: none; color: var(--sun); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
  :root:not([data-theme="light"]) .theme-toggle .sun { opacity: 1; transform: none; color: var(--sun); }
}
@media (max-width: 900px) { .header-inner { gap: 12px; } .theme-toggle { margin-left: auto; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(96px, 14vw, 180px); position: relative; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); display: inline-block; }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2, .process h2 { font-size: clamp(44px, 7vw, 96px); font-weight: 800; }
.lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--text-soft); max-width: 46ch; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font: 600 17px/1 var(--font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn-violet { background: var(--violet); color: var(--white); }
.btn-violet:hover { background: var(--violet-hover); }
.btn-ghost { border-color: rgba(246, 243, 238, .55); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--night); border-color: var(--paper); }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(0); }
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--sun); z-index: 70; pointer-events: none;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
  opacity: 0; mix-blend-mode: normal;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: .35; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease);
}
.site-header.scrolled { background: rgba(21, 18, 46, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header.hide { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; --wm: var(--paper); --wmdot: var(--sun); }
.brand-icon { height: 40px; width: auto; aspect-ratio: 80 / 95; }
.brand-word { height: 24px; width: auto; aspect-ratio: 794 / 186; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { color: var(--paper); text-decoration: none; font-weight: 500; font-size: 16px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 12px 22px; font-size: 15px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 2; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 28px; }
.nav-open .menu-toggle span:first-child { top: 23px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--night); color: var(--paper); position: relative; overflow: hidden;
  min-height: max(720px, 100svh);
  display: flex; align-items: center;
  padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 110px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; width: 100%; }
.hero-eyebrow { color: var(--night-soft); }
.hero-title { font-size: clamp(56px, 8.6vw, 132px); font-weight: 800; line-height: .95; margin: 6px 0 28px; }
/* extra bottom room so Turkish descenders (ç, ş, ğ) are not clipped by the reveal mask */
.hero-title .line { display: block; overflow: hidden; padding: .06em 0 .18em; margin-bottom: -.2em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--sun); }
.hero-sub { font-size: clamp(18px, 1.7vw, 22px); color: var(--night-soft); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; overflow: visible; }
.hs { transform-box: fill-box; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--night-soft); text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue span { width: 26px; height: 42px; border: 2px solid var(--night-line); border-radius: 20px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--sun); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--violet); color: var(--white); overflow: hidden; padding-block: 26px; }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; will-change: transform; }
.marquee span { font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.marquee i { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); flex: none; }
.marquee i:nth-of-type(2n) { width: 44px; height: 22px; border-radius: 11px; background: var(--teal); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border-radius: 28px; padding: 34px 28px 36px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease), color .5s var(--ease);
}
.card h3 { font-size: 30px; font-weight: 700; }
.card p { color: var(--text-soft); font-size: 16px; transition: color .5s var(--ease); }
.card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -30px rgba(21,18,46,.35); background: var(--night); color: var(--paper); }
.card:hover p { color: var(--night-soft); }
.card-shape { position: absolute; top: 34px; left: 28px; height: 90px; width: 140px; }
.card-shape i { position: absolute; display: block; transition: transform .6s var(--ease); }
.s-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); }
.s-pill { width: 88px; height: 36px; border-radius: 18px; background: var(--teal); }
.s-arch { width: 42px; height: 78px; border-radius: 21px 21px 0 0; background: var(--violet); }
.s-arch-teal { background: var(--teal); height: 54px; }
.shape-strategy .s-dot { left: 26px; top: 0; }
.shape-strategy .s-pill { left: 0; top: 46px; }
.shape-design .s-arch { left: 0; top: 0; }
.shape-design .s-dot { left: 54px; top: 42px; }
.shape-production .s-pill { left: 0; top: 30px; }
.shape-production .s-dot { left: 98px; top: 30px; width: 24px; height: 24px; }
.shape-digital .s-arch { left: 0; top: 0; }
.shape-digital .s-arch-teal { left: 50px; top: 24px; }
.card:hover .shape-strategy .s-dot { transform: translateY(-14px); }
.card:hover .shape-design .s-dot { transform: translate(10px, -26px); }
.card:hover .shape-production .s-pill { transform: translateX(14px); }
.card:hover .shape-digital .s-arch-teal { transform: translateY(-24px); }

/* ---------- Process (pinned) ---------- */
.process { background: var(--night); color: var(--paper); position: relative; }
.process-pin { min-height: 100svh; display: flex; align-items: center; padding-block: 120px; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; width: 100%; }
.process .eyebrow { color: var(--sun); }
.process h2 { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; transition: opacity .6s var(--ease), transform .6s var(--ease); }
/* With animations on, steps stay hidden until the scroll reaches them */
.js-anim .step { opacity: 0; transform: translateY(28px); }
.js-anim .step.is-active { opacity: 1; transform: none; }
.step h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--night-soft); font-size: 17px; max-width: 38ch; }
.step-mark { display: block; margin-top: 6px; }
.mark-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); }
.mark-arch { width: 26px; height: 40px; border-radius: 13px 13px 0 0; background: var(--violet); }
.mark-pill { width: 52px; height: 24px; border-radius: 12px; background: var(--teal); }
.process-art { position: relative; display: grid; place-items: center; --wm: var(--paper); --wmdot: var(--sun); }
.process-svg { width: min(100%, 420px); height: auto; overflow: visible; }
.ps { transform-box: fill-box; }
.process-word { width: min(80%, 340px); height: auto; aspect-ratio: 794 / 186; margin-top: 28px; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-wide { grid-column: 1 / -1; }
.work-card { text-decoration: none; color: inherit; display: grid; gap: 18px; }
.work-media {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: var(--night);
  clip-path: inset(0 0 0 0 round 28px);
}
.work-wide .work-media { aspect-ratio: 16 / 7; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card:hover .work-media img, .work-card:hover .work-media i { transform: scale(1.06); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.work-meta h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.work-meta span { color: var(--text-soft); font-size: 15px; }
.work-media i { position: absolute; display: block; transition: transform 1s var(--ease); }
.art-a { background: var(--violet); }
.wa-arch { left: 22%; bottom: 0; width: 34%; height: 62%; border-radius: 999px 999px 0 0; background: var(--paper); }
.wa-dot { right: 18%; top: 16%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.art-b { background: var(--surface-2); border: 1px solid var(--border); }
.wb-line { left: 30%; bottom: -4%; width: 42%; height: 82%; border: 4px solid var(--teal); border-bottom: 0; border-radius: 999px 999px 0 0; }
.wb-pill { left: 12%; bottom: 14%; width: 56%; height: 22%; border-radius: 999px; background: var(--violet); }
.art-c { background: var(--teal); }
.wc-arch { left: 18%; bottom: 0; width: 30%; height: 70%; border-radius: 999px 999px 0 0; background: var(--night); }
.wc-dot { right: 20%; bottom: 18%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }

/* ---------- About ---------- */
.about { background: var(--night); color: var(--paper); overflow: hidden; }
.about .eyebrow { color: var(--sun); }
.about-text { font-size: clamp(30px, 4.2vw, 60px); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; max-width: 22ch; position: relative; z-index: 1; }
.about-text .w { display: inline-block; opacity: 0; }
.about-text .hl-teal { color: var(--teal); }
.about-text .hl-violet { color: #8E6BFF; }
.about-text .hl-sun { color: var(--sun); }
.about-line { position: absolute; right: -40px; bottom: 0; width: min(46vw, 560px); height: auto; opacity: .9; }
.values { list-style: none; margin: 64px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.values li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--night-line); border-radius: 999px; font-weight: 600; }
.v-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: start; }
.contact-title { font-size: clamp(56px, 9vw, 140px); font-weight: 800; line-height: .92; margin-bottom: 48px; }
.contact-title em { font-style: normal; color: var(--accent-text); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.contact-list svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease); }
.contact-list a:hover { background-size: 100% 3px; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--text-soft); margin-top: 8px; }
.contact-form input, .contact-form textarea {
  font: 400 17px/1.4 var(--font); color: var(--text); padding: 14px 18px; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--surface-2); width: 100%; resize: vertical;
  transition: border-color .25s, background .25s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); background: var(--surface); }
.contact-form .btn { margin-top: 18px; width: 100%; }
.form-error { color: #C2361B; font-size: 14px; font-weight: 600; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-soft); text-align: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-soft); padding-block: 56px calc(56px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand .brand-icon { height: 52px; }
.footer-brand-text { display: grid; gap: 6px; }
.footer-brand .brand-word { height: 30px; }
.footer-brand small { font-size: 10px; letter-spacing: .42em; color: var(--night-soft); }
.footer-meta { display: grid; gap: 4px; font-size: 15px; }
.footer-meta a { text-decoration: none; color: var(--paper); }
.footer-meta a:hover { color: var(--sun); }
.to-top { color: var(--paper); text-decoration: none; font-weight: 600; }
.to-top:hover { color: var(--sun); }

/* ---------- Work: placeholder cards that are not clickable yet ---------- */
.work-card.is-soon { cursor: default; }
.work-card.is-soon .work-meta span::after { content: ""; }
.soon-badge { position: absolute; top: 18px; left: 18px; z-index: 1; background: var(--paper); color: var(--night); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.work-card:not(.is-soon) .work-meta h3::after { content: " →"; display: inline-block; transition: transform .4s var(--ease); }
.work-card:not(.is-soon):hover .work-meta h3::after { transform: translateX(6px); }

/* ---------- Vision & mission (inside About) ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 72px; position: relative; z-index: 1; }
.vm { border: 1px solid var(--night-line); border-radius: 28px; padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; background: var(--night-2); }
.vm-mark { width: 44px; height: 44px; display: block; }
.vm h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: var(--paper); }
.vm p { color: var(--night-soft); font-size: 18px; max-width: 44ch; }
.about-link { margin-top: 48px; position: relative; z-index: 1; }

/* ---------- Sub pages ---------- */
.page-hero { background: var(--night); color: var(--paper); padding-top: calc(150px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(80px, 10vw, 130px); overflow: hidden; }
.page-hero .eyebrow { color: var(--night-soft); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.page-title { font-size: clamp(52px, 8vw, 120px); font-weight: 800; line-height: .95; margin: 6px 0 28px; }
.page-title .line { display: block; overflow: hidden; padding: .06em 0 .18em; margin-bottom: -.2em; }
.page-title .line > span { display: inline-block; }
.page-title em { font-style: normal; color: var(--sun); }
.page-lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--night-soft); max-width: 50ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 44px 0 0; }
.page-meta dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); font-weight: 600; margin-bottom: 4px; }
.page-meta dd { margin: 0; font-weight: 500; }
.page-hero-icon { width: min(100%, 320px); justify-self: center; overflow: visible; }
.page-hero-icon g { transform-box: fill-box; }

.brand-logos, .brand-rules { background: var(--bg-alt); }
.meaning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.meaning { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px; display: grid; gap: 16px; align-content: start; }
.meaning svg { width: 64px; height: 64px; }
.meaning h3 { font-size: 28px; font-weight: 700; display: grid; gap: 4px; }
.meaning h3 span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.meaning p { color: var(--text-soft); font-size: 16px; }

.logo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { margin: 0; border-radius: 24px; padding: 18px 18px 16px; display: grid; gap: 10px; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tile.wide { grid-column: span 2; }
.tile.wide img { aspect-ratio: 9 / 4; }
.tile figcaption { font-size: 14px; font-weight: 600; }
.t-paper { background: var(--paper); color: var(--ink); }
.t-night { background: var(--night); color: var(--paper); }

.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.swatch { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.swatch .chip { height: 170px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.swatch .chip small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .8; margin-top: 2px; }
.swatch .codes { padding: 16px 22px 20px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.swatch .codes button { all: unset; cursor: pointer; font-weight: 700; color: var(--text); border-bottom: 1.5px dashed var(--accent-text); }
.swatch .codes button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.rules-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rule-panel { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.clearspace { width: 100%; height: auto; }
.cs-word { --wm: #15122E; --wmdot: #5B2EFF; }
.rule-panel h3 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.min-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.min-list li { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.min-list span { color: var(--ink-soft); font-size: 15px; }
.dont-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dont { margin: 0; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.dont .art { height: 160px; display: grid; place-items: center; background: var(--paper); position: relative; }
.dont .art::after { content: "✕"; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.dont figcaption { padding: 14px 18px 18px; font-size: 15px; color: var(--text-soft); display: grid; gap: 2px; }
.dont figcaption b { color: var(--text); }

.brand-type { background: var(--night); color: var(--paper); }
.brand-type .eyebrow { color: var(--sun); }
.brand-type .lead { color: var(--night-soft); }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.face { border: 1px solid var(--night-line); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; }
.face .aa { font-size: clamp(90px, 12vw, 160px); font-weight: 800; line-height: .9; letter-spacing: -0.04em; margin-bottom: 12px; }
.face .aa.reg { font-weight: 400; }
.face b { font-size: 22px; }
.face span { color: var(--night-soft); font-size: 15px; }
.face .glyphs { margin-top: 14px; font-size: 18px; letter-spacing: .04em; overflow-wrap: anywhere; }

.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-item { margin: 0; display: grid; gap: 12px; }
.app-item figcaption { font-size: 15px; font-weight: 600; color: var(--text-soft); }
.app-card { border-radius: 28px; overflow: hidden; background: var(--night); clip-path: inset(0 0 0 0 round 28px); aspect-ratio: 3 / 2; }
.app-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-wide { grid-column: 1 / -1; }

.cta-band { background: var(--violet); color: var(--white); padding-block: clamp(80px, 10vw, 140px); }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(44px, 6.4vw, 96px); font-weight: 800; }
.cta-band h2 em { font-style: normal; color: var(--sun); }
.btn-sun { background: var(--sun); color: var(--night); }
.btn-sun:hover { background: var(--paper); }

@media (max-width: 900px) {
  .page-hero-grid, .rules-grid, .type-grid, .vm-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-icon { width: 180px; justify-self: start; order: -1; }
  .meaning-grid, .swatch-grid, .dont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .meaning-grid, .swatch-grid, .dont-grid, .logo-tiles { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
}

/* ---------- Team (inside About, filled from the admin panel) ---------- */
.team { margin-top: 72px; position: relative; z-index: 1; }
.team-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--paper); margin-bottom: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.member { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 28px; padding: 18px 18px 24px; display: grid; gap: 6px; align-content: start; }
.member-photo { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--violet); display: grid; place-items: center; margin-bottom: 10px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member .team-initials { font-size: 56px; font-weight: 800; color: var(--paper); letter-spacing: -0.03em; }
.member h4 { margin: 0; font-size: 22px; font-weight: 700; color: var(--paper); }
.member span { color: var(--sun); font-size: 14px; font-weight: 600; }
.member p { color: var(--night-soft); font-size: 15px; margin-top: 6px; }

/* ---------- WhatsApp button ---------- */
.wa-btn {
  position: fixed; z-index: 40; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: var(--teal); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(21,18,46,.5); transition: transform .3s var(--ease);
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 28px; height: 28px; }

/* ---------- Project pages ---------- */
.project-body { padding-top: clamp(48px, 6vw, 80px); }
.project-cover { margin-bottom: clamp(48px, 6vw, 80px); }
.cover-card { aspect-ratio: 16 / 9; }
.project-text { max-width: 760px; margin: 0 auto clamp(56px, 7vw, 96px); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; color: var(--text-soft); display: grid; gap: 1.1em; }
.project-gallery { margin-bottom: clamp(56px, 7vw, 96px); }
.next-project { display: grid; gap: 6px; text-decoration: none; border-top: 1px solid var(--border); padding-top: 32px; }
.next-project span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.next-project strong { font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; transition: color .3s var(--ease); }
.next-project:hover strong { color: var(--accent-text); }

/* ---------- Thin line decorations (drawn on scroll) ---------- */
.services, .work, .contact { overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; height: auto; overflow: visible; }
.deco-circle { width: clamp(280px, 34vw, 480px); right: -8%; top: 60px; }
.deco-pill { width: clamp(300px, 40vw, 620px); right: -6%; top: clamp(70px, 10vw, 140px); }
.deco-arch { width: clamp(220px, 24vw, 340px); right: -60px; bottom: -90px; }

/* ---------- Reveal defaults (JS adds motion; content is visible without it) ---------- */
.reveal { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--night); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a:not(.btn) { font-size: 32px; font-weight: 700; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .hero-grid, .process-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 120px; }
  .hero-art { max-width: 300px; margin: 8px auto 0; width: 70%; }
  /* compact pinned process so all three steps fit on a phone screen */
  .process-pin { padding-block: 84px 40px; }
  .process-grid { gap: 20px; }
  .process-art { order: -1; display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
  .process-svg { width: 92px; }
  .process-word { width: 150px; margin: 0 0 6px; }
  .process h2 { font-size: clamp(34px, 9vw, 52px); margin-bottom: 22px; }
  .process .eyebrow { margin-bottom: 10px; }
  .steps { gap: 14px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .step h3 { font-size: 24px; }
  .mark-pill { width: 38px; height: 20px; }
  .step p { font-size: 15px; line-height: 1.45; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-wide .work-media { aspect-ratio: 4 / 3; }
  .about-line { width: 70vw; opacity: .35; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 300px; }
  .header-inner { height: 72px; }
  .brand-icon { height: 34px; }
  .brand-word { height: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .about-text .w { opacity: 1; }
  .step { opacity: 1; }
}
