/* ============================================================
   STORCODE — Design System
   ============================================================ */

:root {
  /* ---- Palette: Midnight (default — aligned to logo navy) -- */
  --bg:        #0A0B1F;
  --bg-elev:   #0F1130;
  --surface:   #161843;
  --surface-2: #1D2057;
  --text:      #ECECF7;
  --text-dim:  #A8AAC8;
  --text-mute: #6B6D8E;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.14);
  --brand:     #4A4BD9;
  --brand-2:   #7172EE;
  --brand-soft:rgba(74, 75, 217, 0.18);
  --accent:    #C8C9DC;
  --warm:      #E8D9C0;
  --ok:        #6FCF97;

  /* ---- Type ------------------------------------------------ */
  --serif:  'Instrument Serif', 'Times New Roman', serif;
  --sans:   'Sora', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  /* ---- Layout --------------------------------------------- */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* ---- Motion --------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Palette: Aurora (deep black + cyan) ==================== */
html[data-palette="aurora"] {
  --bg:        #06080C;
  --bg-elev:   #0B0F16;
  --surface:   #11161F;
  --surface-2: #181F2B;
  --text:      #EAF6FF;
  --text-dim:  #92A3B8;
  --text-mute: #5A6B82;
  --line:      rgba(255, 255, 255, 0.06);
  --line-2:    rgba(255, 255, 255, 0.13);
  --brand:     #4ED1E8;
  --brand-2:   #74E2F2;
  --brand-soft:rgba(78, 209, 232, 0.14);
  --accent:    #BCE7F0;
  --warm:      #F0DDB3;
}

/* === Palette: Steel (light, off-white + logo navy + gray) === */
html[data-palette="steel"] {
  --bg:        #F3F2EC;
  --bg-elev:   #EBEAE3;
  --surface:   #FFFFFF;
  --surface-2: #E2E1D9;
  --text:      #0D0C42;
  --text-dim:  #3D3C3F;
  --text-mute: #8A8989;
  --line:      rgba(13, 12, 66, 0.10);
  --line-2:    rgba(13, 12, 66, 0.22);
  --brand:     #1A1B6E;
  --brand-2:   #2E2FA0;
  --brand-soft:rgba(13, 12, 66, 0.08);
  --accent:    #3D3C3F;
  --warm:      #B8956A;
}

/* === Palette: Cream (warm bone + logo navy + terracotta) === */
html[data-palette="cream"] {
  --bg:        #EFEAE0;
  --bg-elev:   #E4DECF;
  --surface:   #F7F3E9;
  --surface-2: #D9D2BE;
  --text:      #0D0C42;
  --text-dim:  #3D3C3F;
  --text-mute: #8A8775;
  --line:      rgba(13, 12, 66, 0.10);
  --line-2:    rgba(13, 12, 66, 0.22);
  --brand:     #0D0C42;
  --brand-2:   #2E2FA0;
  --brand-soft:rgba(13, 12, 66, 0.08);
  --accent:    #B5503A;
  --warm:      #B5503A;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: var(--bg); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--text-mute);
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
.h-display {
  font-family: var(--serif);
  font-size: clamp(56px, 9.2vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.h-display em {
  font-style: italic;
  color: var(--brand-2);
}
.h-1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h-1 em { font-style: italic; color: var(--brand-2); }
.h-2 {
  font-family: var(--sans);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.h-3 {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.lede {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 60ch;
  font-weight: 300;
}
p { margin: 0 0 1em; }
.body { color: var(--text-dim); font-weight: 300; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding: clamp(56px, 7vw, 100px) 0; }
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px 0;
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.footer .logo-img { height: 26px; }
/* Show light version on dark themes; show dark version on light themes */
.logo-img-dark { display: none; }
html[data-palette="steel"] .logo-img-dark,
html[data-palette="cream"] .logo-img-dark { display: block; }
html[data-palette="steel"] .logo-img-light,
html[data-palette="cream"] .logo-img-light { display: none; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color .2s var(--ease), background-color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }
.nav-link.active::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-mute);
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
}
.lang-btn.is-active { background: var(--text); color: var(--bg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-brand {
  background: var(--brand);
  color: var(--bg);
}
.btn-brand:hover { background: var(--brand-2); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 110px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, var(--bg) 75%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

.hero-title { max-width: 14ch; }
.hero-sub {
  margin-top: 32px;
  max-width: 52ch;
}
.hero-cta-row {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-footer {
  margin-top: auto;
  padding-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat .n {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .hero-footer { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PAGE HEADER (non-home)
   ============================================================ */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-header h1 { max-width: 14ch; }
.page-header .lede { max-width: 48ch; }
@media (max-width: 900px) {
  .page-header-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .lede { margin-top: 16px; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   SERVICES (home preview cards)
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service-card {
  grid-column: span 6;
  position: relative;
  padding: 36px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.service-card .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 14ch;
}
.service-card p {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 300;
  margin-top: 18px;
  max-width: 42ch;
}
.service-card .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.service-card .meta .arrow {
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  color: var(--text);
}
.service-card:hover .meta .arrow {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}
.service-card .glow {
  position: absolute;
  inset: auto -40% -50% auto;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.service-card:hover .glow { opacity: 1; }
@media (max-width: 800px) {
  .service-card { grid-column: span 12; }
}

/* ============================================================
   PEOPLE / VALUES
   ============================================================ */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.value {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .25s var(--ease);
}
.value:hover { background: var(--surface); }
.value .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.value h3 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.value p { color: var(--text-dim); font-weight: 300; font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* ============================================================
   IMAGE TILES (collage)
   ============================================================ */
.collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px;
}
.collage .tile {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.collage .tile.t1 { grid-column: 1; grid-row: 1 / 3; }
.collage .tile.t2 { grid-column: 2; grid-row: 1; }
.collage .tile.t3 { grid-column: 3; grid-row: 1; }
.collage .tile.t4 { grid-column: 2 / 4; grid-row: 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .tile.data-tile {
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}
@media (max-width: 800px) {
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .collage .tile.t1 { grid-column: 1 / 3; grid-row: 1; }
  .collage .tile.t2 { grid-column: 1; grid-row: 2; }
  .collage .tile.t3 { grid-column: 2; grid-row: 2; }
  .collage .tile.t4 { grid-column: 1 / 3; grid-row: 3; }
}

/* Placeholder photo (gradient + texture) when no real image */
.photo-ph {
  width: 100%; height: 100%;
  background:
    radial-gradient(at 30% 20%, color-mix(in oklab, var(--brand) 35%, transparent), transparent 60%),
    radial-gradient(at 80% 80%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}
.photo-ph::after {
  content: attr(data-label);
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); }
.post-cover {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-card .meta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.post-card .meta .tag {
  color: var(--brand-2);
}
.post-card h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.post-card .excerpt {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 300;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.cta-block .h-display { font-size: clamp(48px, 7vw, 110px); }
.cta-side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .cta-block { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 400;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SERVICES PAGE — service block
   ============================================================ */
.service-block {
  padding: clamp(70px, 9vw, 130px) 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.service-block .sticky-side {
  position: sticky;
  top: 120px;
}
.service-block .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}
.service-block h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.service-block .tagline {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 16px;
  max-width: 38ch;
  margin-bottom: 24px;
}
.subblock {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.subblock:first-child { border-top: 0; padding-top: 0; }
.subblock h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.subblock p {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 15.5px;
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 900px) {
  .service-block-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-block .sticky-side { position: static; }
  .subblock { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.purpose-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.purpose-block .h-1 { max-width: 14ch; }
@media (max-width: 900px) { .purpose-block { grid-template-columns: 1fr; } }

.team-photo {
  aspect-ratio: 16/8;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.values-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.value-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.value-card:hover { background: var(--surface-2); border-color: var(--line-2); }
.value-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  color: var(--brand-2);
}
.value-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.value-card p { color: var(--text-dim); font-weight: 300; font-size: 14.5px; margin: 0; }
@media (max-width: 800px) { .values-cards { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.blog-filter button {
  font: inherit;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.blog-filter button.active,
.blog-filter button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.blog-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.blog-feature .post-cover { aspect-ratio: 16/10; }
.blog-feature h3 { font-size: 38px; line-height: 1.02; }
@media (max-width: 800px) { .blog-feature { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-family: var(--sans);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 0;
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
  resize: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--brand); }
.field textarea { min-height: 120px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.contact-info .item h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 400;
}
.contact-info .item p {
  font-size: 17px;
  margin: 0;
  font-weight: 300;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   MISC
   ============================================================ */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 4px 10px;
  border: 1px solid var(--brand-soft);
  background: var(--brand-soft);
  border-radius: 999px;
}

/* ============================================================
   CLIENT LOGOS (Confiam em nós)
   ============================================================ */
.client-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.client-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.client-logo-card {
  height: 56px;
  background: #ffffff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.client-logo-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.client-logo-card img {
  max-height: 32px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
/* Marks with tight bounding boxes need more room to read */
.client-logo-card.lg img { max-height: 44px; }
@media (max-width: 1100px) { .client-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .client-strip { grid-template-columns: repeat(3, 1fr); } .client-logo-card { height: 48px; padding: 6px 10px; } .client-logo-card img { max-height: 26px; } }
@media (max-width: 460px)  { .client-strip { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   COOKIE CONSENT BANNER (LGPD)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  z-index: 90;
  padding: 22px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transform: translateY(140%);
  transition: transform .5s var(--ease-out);
  backdrop-filter: blur(16px);
}
.cookie-banner.is-open { transform: translateY(0); }
.cookie-banner .copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cookie-banner .copy strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.cookie-banner .copy p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
}
.cookie-banner .copy a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-soft);
}
.cookie-banner .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-banner .actions .btn { padding: 10px 16px; font-size: 13px; }
@media (max-width: 720px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px 16px; }
  .cookie-banner .actions { justify-content: stretch; }
  .cookie-banner .actions .btn { flex: 1; justify-content: center; }
}

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Hide nav-links on small screens — keep simple */
@media (max-width: 720px) {
  .nav-links .nav-link.sub { display: none; }
}
