/* ============================================================
   BlueMint — Main styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

::selection { background: var(--brand-mint); color: #06140d; }

/* page background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 100% at 80% -10%, color-mix(in oklab, var(--brand-navy) 22%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b));
  transition: opacity 0.6s var(--ease);
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--page-pad); }
.section { position: relative; padding-block: clamp(72px, 11vw, 168px); }
.tone-dark { background: var(--bg); color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.05em; height: 1.05em; flex: none;
  background: currentColor;
  -webkit-mask: url("../assets/logo/leaf.svg") center / contain no-repeat;
  mask: url("../assets/logo/leaf.svg") center / contain no-repeat;
}
[data-theme="light"] .eyebrow, [data-theme="mix"] .section:not(.tone-dark) .eyebrow { color: var(--brand-mint-deep); }

.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 72px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(34px, 6vw, 78px);
  margin-top: 18px;
}
.section-title em { font-style: normal; color: var(--accent); }
[data-theme="light"] .section-title em,
[data-theme="mix"] .section:not(.tone-dark) .section-title em { color: var(--brand-mint-deep); }
.section-intro {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none; border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), opacity .25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,0.12); border-color: transparent; }
.cursor-ring.is-view {
  width: 92px; height: 92px; background: var(--brand-mint); border-color: transparent; mix-blend-mode: normal;
}
.cursor-ring .cursor-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #06140d; opacity: 0; transition: opacity .2s; font-weight: 600;
}
.cursor-ring.is-view .cursor-label { opacity: 1; }
.cursor-ring.is-view + .cursor-dot, .cursor-ring.is-view ~ .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--page-pad);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 12px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-logo { height: 48px; display: flex; align-items: center; }
.nav-logo img { height: 100%; width: auto; }
.nav-logo .logo-dark { display: none; }
[data-theme="light"] .nav-logo .logo-light,
[data-theme="mix"] .nav-logo .logo-light { display: none; }
[data-theme="light"] .nav-logo .logo-dark,
[data-theme="mix"] .nav-logo .logo-dark { display: block; }
/* in mix, top hero is dark -> show white logo until scrolled */
[data-theme="mix"] .nav:not(.scrolled) .logo-light { display: block; }
[data-theme="mix"] .nav:not(.scrolled) .logo-dark { display: none; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav-link {
  font-size: 15px; letter-spacing: 0.01em; position: relative; color: var(--ink-soft);
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 28px; background: var(--bg); transform: translateY(-100%);
    transition: transform .5s var(--ease); z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { font-size: 28px; }
  .nav-burger { display: flex; z-index: 1001; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: 100px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  background: var(--accent); color: var(--accent-ink);
  position: relative; overflow: hidden; will-change: transform;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { box-shadow: 0 14px 40px -12px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn .btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--lg { padding: 1.05em 1.9em; font-size: 16px; }

/* link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: gap .3s var(--ease), border-color .3s;
}
.arrow-link:hover { gap: 0.9em; border-color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 96px; overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  opacity: .92; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; max-width: 18ch; }
.hero-eyebrow { margin-bottom: 28px; opacity: 0; white-space: nowrap; }
.hero-eyebrow::before { display: none; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 300; letter-spacing: -0.025em; line-height: 0.98;
  font-size: clamp(48px, 9vw, 142px);
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word > span { display: inline-block; will-change: transform; transform: translateY(110%); }
.hero-title .accent { color: var(--accent); font-weight: 500; }
[data-theme="light"] .hero-title .accent { color: var(--brand-mint-deep); }
.hero-sub {
  margin-top: 34px; max-width: 42ch; font-size: clamp(16px, 1.5vw, 21px);
  color: var(--ink-soft); opacity: 0; text-wrap: balance;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: nowrap; opacity: 0; }
@media (max-width: 460px) { .hero-actions { flex-wrap: wrap; } }

.hero-scroll {
  position: absolute; bottom: 30px; left: var(--page-pad); z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-scroll .line { width: 54px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll .line::after { content:""; position:absolute; inset:0; width: 40%; background: var(--accent); animation: scrollline 2.4s var(--ease) infinite; }
@keyframes scrollline { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(280%)} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden;
  display: flex; gap: 0; white-space: nowrap; user-select: none;
}
.marquee-track { display: flex; align-items: center; gap: 48px; padding-right: 48px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 4vw, 56px); letter-spacing: -0.01em; color: var(--ink); display: inline-flex; align-items: center; gap: 48px; }
.marquee-item::after { content: ""; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; }
.marquee-item.dim { color: var(--ink-faint); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT / STATEMENT
   ============================================================ */
.statement-text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 3.6vw, 50px); line-height: 1.18; letter-spacing: -0.015em;
  max-width: 24ch;
}
.statement-text .hl { color: var(--accent); }
[data-theme="light"] .statement-text .hl, [data-theme="mix"] .section:not(.tone-dark) .statement-text .hl { color: var(--brand-mint-deep); }
.statement-text .reveal-word { display: inline-block; }

.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.about-body p { color: var(--ink-soft); font-size: clamp(15px, 1.2vw, 18px); margin-top: 18px; max-width: 52ch; }
.about-body p:first-child { margin-top: 0; }

/* About → Services CTA — interactive half-flower + faded CTA box */
.about-portal {
  position: relative; display: block; align-self: stretch;
  min-height: clamp(440px, 42vw, 620px);
  color: var(--ink); background: none; border: none; box-shadow: none; border-radius: 0; padding: 0;
  isolation: isolate; overflow: visible; text-decoration: none;
}
.portal-canvas { position: absolute; left: 0; z-index: 0; pointer-events: none; }
.portal-foot {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: clamp(18px, 2vw, 30px);
  padding: clamp(54px, 7vw, 96px) clamp(28px, 3vw, 44px) clamp(26px, 2.8vw, 38px) clamp(26px, 2.6vw, 42px);
  background: linear-gradient(to top, var(--surface-2) 24%, color-mix(in oklab, var(--surface-2) 60%, transparent) 52%, transparent 100%);
  -webkit-mask: linear-gradient(to top, #000 60%, transparent 100%);
          mask: linear-gradient(to top, #000 60%, transparent 100%);
  border-radius: 0 clamp(16px, 1.6vw, 22px) clamp(16px, 1.6vw, 22px) clamp(16px, 1.6vw, 22px);
}
.portal-txt { display: flex; flex-direction: column; gap: 12px; }
.portal-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-mint-deep); }
.portal-label { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.02em; line-height: 1.02; color: var(--ink); transition: color .3s var(--ease); }
.portal-arrow { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; font-size: 22px; transition: .4s var(--ease); }
.about-portal:hover .portal-arrow { background: var(--brand-mint); color: #06140d; border-color: var(--brand-mint); transform: translateX(4px); }
.about-portal:hover .portal-label { color: var(--brand-mint-deep); }
@media (max-width: 760px) {
  .about-portal { min-height: 300px; }
  .portal-label { font-size: clamp(28px, 8vw, 40px); }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(90px, 10vw, 150px); }
.stat { background: var(--bg); padding: clamp(22px, 3vw, 38px); }
.tone-dark .stat, .section.tone-dark .stat { background: var(--bg); }
.stat-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5vw, 62px); letter-spacing: -0.02em; line-height: 1; }
.stat-num .unit { color: var(--accent); }
[data-theme="light"] .stat-num .unit, [data-theme="mix"] .section:not(.tone-dark) .stat-num .unit { color: var(--brand-mint-deep); }
.stat-label { margin-top: 12px; color: var(--ink-soft); font-size: 14px; max-width: 26ch; }

/* differentiators */
.diffs { margin-top: clamp(50px, 7vw, 96px); border-top: 1px solid var(--line); }
.diff {
  display: grid; grid-template-columns: 60px 1fr auto; gap: clamp(16px,3vw,48px); align-items: center;
  padding: clamp(12px, 1.5vw, 18px) 0; border-bottom: 1px solid var(--line);
}
.diff-no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.diff-text { font-family: var(--font-display); font-weight: 300; font-size: clamp(18px, 2vw, 27px); letter-spacing: -0.01em; }
.diff-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
[data-theme="light"] .diff-tag, [data-theme="mix"] .section:not(.tone-dark) .diff-tag { color: var(--brand-mint-deep); }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .diff { grid-template-columns: 30px 1fr; }
  .diff-tag { display: none; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-list { border-top: 1px solid var(--line-strong); }
.service {
  position: relative; border-bottom: 1px solid var(--line-strong);
  transition: background .4s var(--ease);
}
.service-head {
  display: grid; grid-template-columns: 64px 1fr auto 44px; align-items: center; gap: clamp(14px, 2vw, 36px);
  padding: clamp(24px, 3.4vw, 44px) 4px; width: 100%; text-align: left;
}
.service-no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.service-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.02em; transition: transform .4s var(--ease), color .3s; }
.service-price { font-family: var(--font-mono); font-size: clamp(12px, 1vw, 14px); letter-spacing: .04em; color: var(--accent); text-align: right; }
.service-price strong { font-weight: 700; }
[data-theme="light"] .service-price, [data-theme="mix"] .section:not(.tone-dark) .service-price { color: var(--brand-mint-deep); }
.service-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: .35s var(--ease); }
.service-toggle::before, .service-toggle::after { content: ""; position: absolute; background: var(--ink); transition: .35s var(--ease); }
.service-toggle::before { width: 14px; height: 1.6px; }
.service-toggle::after { width: 1.6px; height: 14px; }
.service.open .service-toggle { background: var(--accent); border-color: var(--accent); }
.service.open .service-toggle::before, .service.open .service-toggle::after { background: var(--accent-ink); }
.service.open .service-toggle::after { transform: scaleY(0); }
.service:hover .service-name { transform: translateX(10px); }
.service:hover { background: color-mix(in oklab, var(--accent) 6%, transparent); }

.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.service.open .service-body { grid-template-rows: 1fr; }
.service-body-inner { overflow: hidden; }
.service-detail {
  display: grid; grid-template-columns: 64px 1.1fr 1fr; gap: clamp(14px,2vw,36px);
  padding: 0 4px clamp(34px, 4vw, 52px);
}
.service-desc { color: var(--ink-soft); font-size: clamp(15px,1.3vw,19px); max-width: 40ch; }
.service-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.service-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.service-feats li::before { content: ""; flex: none; margin-top: 3px; width: 16px; height: 16px; background: var(--accent); -webkit-mask: url("../assets/logo/flower.svg") center / contain no-repeat; mask: url("../assets/logo/flower.svg") center / contain no-repeat; }
.service-cta { margin-top: 22px; }
@media (max-width: 820px) {
  .service-head { grid-template-columns: 36px 1fr 40px; }
  .service-price { display: none; }
  .service-detail { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.work-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: .3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 26px);
}
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  grid-column: span 6; aspect-ratio: 16 / 11;
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}
.work-card.span-4 { grid-column: span 4; }
.work-card.span-8 { grid-column: span 8; }
.work-card.tall { aspect-ratio: 4 / 5; }
.work-card.wide { aspect-ratio: 16 / 8; }
.work-card.hidden { display: none; }
.work-media { position: absolute; inset: 0; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); will-change: transform; }
.work-card:hover .work-media img { transform: scale(1.06); }
.work-overlay {
  position: absolute; inset: 0; z-index: 2; padding: clamp(18px, 2vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(6,13,22,0.86) 0%, rgba(6,13,22,0.15) 45%, transparent 75%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-mint); }
.work-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(18px, 1.8vw, 27px); color: #fff; margin-top: 8px; letter-spacing: -0.01em; transform: translateY(8px); transition: transform .45s var(--ease); }
.work-card:hover .work-title { transform: translateY(0); }
.work-corner { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: scale(.6) rotate(-30deg); transition: .45s var(--ease); }
.work-card:hover .work-corner { opacity: 1; transform: scale(1) rotate(0); }
.work-corner svg { width: 16px; height: 16px; stroke: #fff; }

/* placeholder cards for missing categories */
.work-card.placeholder {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, color-mix(in oklab, var(--accent) 7%, transparent) 12px, color-mix(in oklab, var(--accent) 7%, transparent) 13px),
    var(--surface);
  border: 1.5px dashed color-mix(in oklab, var(--accent) 55%, var(--line));
  display: grid; place-items: center; text-align: center;
}
.work-card.placeholder .ph-inner { padding: 24px; }
.work-card.placeholder .ph-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.work-card.placeholder .ph-title { font-family: var(--font-display); font-size: clamp(18px,2vw,24px); margin-top: 10px; color: var(--ink); }
.work-card.placeholder .ph-note { margin-top: 8px; font-size: 13px; color: var(--ink-faint); max-width: 28ch; }

@media (max-width: 900px) {
  .work-card, .work-card.span-4, .work-card.span-8 { grid-column: span 6; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card.span-4, .work-card.span-8 { grid-column: 1 / -1; aspect-ratio: 16/11; }
}

/* ============================================================
   INSIGHTS / BLOG
   ============================================================ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
.post {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px);
  background: color-mix(in oklab, var(--surface) 60%, transparent); display: flex; flex-direction: column; gap: 16px;
  min-height: 280px; transition: .4s var(--ease); position: relative; overflow: hidden;
}
.post:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.post-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em; }
.post-excerpt { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.post-foot { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.post .ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; padding: 4px 40px; text-transform: uppercase; }
@media (max-width: 820px) { .posts { grid-template-columns: 1fr; } }

/* Once there are more than 3 posts (class added by js/site.js), the grid
   becomes a horizontal scroll rail showing 3 at a time with a visible bar. */
.posts.posts--rail {
  display: flex; grid-template-columns: none;
  overflow-x: auto; overflow-y: hidden;
  gap: clamp(16px, 2vw, 30px); padding-bottom: 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.posts.posts--rail .post {
  flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 30px)) / 3);
  scroll-snap-align: start;
}
.posts.posts--rail::-webkit-scrollbar { height: 8px; }
.posts.posts--rail::-webkit-scrollbar-track { background: var(--line); border-radius: 4px; }
.posts.posts--rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.posts.posts--rail::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
@media (max-width: 820px) {
  .posts.posts--rail .post { flex-basis: 78vw; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-title { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.025em; line-height: 0.98; font-size: clamp(42px, 7vw, 104px); }
.contact-title em { font-style: normal; color: var(--accent); }
.contact-lead { margin-top: 24px; color: var(--ink-soft); font-size: clamp(16px,1.4vw,20px); max-width: 40ch; }
.contact-info > .eyebrow { display: inline-flex; margin-bottom: clamp(20px, 2.6vw, 32px); }
.contact-details { margin-top: 0; display: flex; flex-direction: column; gap: 2px; }
.cdetail { display: flex; align-items: center; gap: 14px; padding: 10px 0; border: 0; }
.cic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.cic svg { width: 19px; height: 19px; }
.cdetail:hover .cic { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cdetail .v { font-size: clamp(15px, 1.4vw, 19px); transition: color .25s; }
.cdetail:hover .v { color: var(--accent); }
[data-theme="light"] .cic, [data-theme="mix"] .section:not(.tone-dark) .cic { color: var(--brand-mint-deep); }
.contact-formcol .form { margin-top: clamp(28px, 4vw, 44px); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink); background: transparent;
  border: none; border-bottom: 1.5px solid var(--line-strong); padding: 12px 2px; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.form .submit-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--ink-faint); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(56px, 7vw, 96px) 36px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 46px; width: auto; }
.footer-logo .logo-dark { display: none; }
[data-theme="light"] .footer-logo .logo-light, [data-theme="mix"] .footer:not(.tone-dark) .footer-logo .logo-light { display: none; }
[data-theme="light"] .footer-logo .logo-dark, [data-theme="mix"] .footer:not(.tone-dark) .footer-logo .logo-dark { display: block; }
.footer-tagline { margin-top: 22px; color: var(--ink-soft); max-width: 34ch; font-size: 15px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; color: var(--ink-soft); transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.footer-bottom .mono { font-family: var(--font-mono); letter-spacing: .04em; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-logo { grid-column: 1 / -1; } }

/* ============================================================
   Reveal animations
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
.line-mask { overflow: hidden; }
.line-mask > * { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.line-mask.in > * { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .line-mask > *, .hero-eyebrow, .hero-sub, .hero-actions, .hero-title .word > span { opacity: 1 !important; transform: none !important; }
  .flower-spin, .marquee-track { animation: none !important; }
}
html[data-motion="calm"] .flower-spin, html[data-motion="calm"] .hero-scroll .line::after { animation: none; }

/* missing content global note */
.add-later {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px dashed color-mix(in oklab, var(--accent) 55%, var(--line)); padding: 7px 12px; border-radius: 8px;
}
.add-later::before { content: "+"; font-weight: 700; }

/* trusted-by placeholder */
.trusted { margin-top: clamp(40px,5vw,72px); }
.trusted-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.trusted-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trusted-slot { flex: 1; min-width: 120px; height: 64px; border: 1.5px dashed var(--line-strong); border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .08em; }

/* ============================================================
   Round 2 tweaks
   ============================================================ */

/* Hero sub + actions break out of the narrow title column */
.hero-sub { max-width: none; width: min(34ch, 82vw); text-wrap: balance; }
.hero-actions { width: max-content; max-width: 88vw; flex-wrap: wrap; }
.hero-actions .btn { min-width: 0; justify-content: center; }
.btn--lg { padding: 1.05em 2.2em; }
@media (max-width: 480px) { .hero-actions { width: 100%; } .hero-actions .btn { min-width: 0; flex: 1 1 100%; } }

/* About: statement sits above body text in the right column */
.about-grid { align-items: stretch; }
#about { overflow: hidden; }
.about-col { display: flex; flex-direction: column; justify-content: center; }
.about-col .statement-text { max-width: none; margin-bottom: clamp(22px, 3vw, 40px); }

/* (interactive Services portal now rendered on a canvas — see js/site.js) */

/* Contact form as a clearly visible card */
.contact-formcol .form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow); }

/* ============================================================
   Round 3 tweaks
   ============================================================ */

/* Lift hero content off the marquee */
.hero { padding-bottom: clamp(56px, 10vh, 120px); }

/* Our Work: 6-up auto-scrolling rail with manual scroll/drag */
.work-rail {
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.work-rail::-webkit-scrollbar { height: 6px; }
.work-rail::-webkit-scrollbar-track { background: transparent; }
.work-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.work-rail.dragging { cursor: grabbing; }
.work-track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-bottom: 6px; }
.work-track .work-card { flex: 0 0 clamp(190px, 15.5vw, 246px); grid-column: auto; }
.work-track .work-card[data-reveal] { opacity: 1; transform: none; }
.work-hint { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.work-hint svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .work-track .work-card { flex: 0 0 64vw; } }

/* Call / WhatsApp icon that blinks between the two */
.cic-swap { position: relative; }
.cic-swap svg { position: absolute; inset: 0; margin: auto; width: 19px; height: 19px; }
.cic-swap .ic-phone { animation: icoSwapA 3s ease-in-out infinite; }
.cic-swap .ic-wa { animation: icoSwapB 3s ease-in-out infinite; }
@keyframes icoSwapA { 0%,38% { opacity: 1; } 50%,88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes icoSwapB { 0%,38% { opacity: 0; } 50%,88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cic-swap .ic-phone, .cic-swap .ic-wa { animation: none; } .cic-swap .ic-wa { opacity: 0; } }

/* Lightbox for work samples */
.lightbox { position: fixed; inset: 0; z-index: 9990; display: none; place-items: center; padding: 5vmin; background: rgba(6,13,22,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 90px -20px rgba(0,0,0,.7); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; display: grid; place-items: center; transition: background .25s; }
.lightbox-close:hover { background: rgba(255,255,255,.26); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; display: grid; place-items: center; transition: background .25s; }
.lightbox-nav:hover { background: var(--brand-mint); color: #06140d; }
.lightbox-nav.prev { left: clamp(12px, 3vw, 40px); }
.lightbox-nav.next { right: clamp(12px, 3vw, 40px); }
.lightbox-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.7); }
@media (max-width: 600px) { .lightbox-nav { width: 44px; height: 44px; font-size: 20px; } }
