/* ============================================================
   DAF — Page layout (sections)
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: stretch;
  min-height: 100px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hdr-logo {
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  font-size: 32px;
}
.daf-logo {
  display: block; width: auto;
}
.hdr-logo .daf-logo { height: 78px; width: auto; max-width: 100%; }
.f-col.f-brand { display: flex; flex-direction: column; justify-content: center; padding-left: 18px; padding-right: 18px; }
.f-brand .daf { width: auto; margin-top: 0; }
.f-brand .daf .daf-logo { height: 200px; width: auto; }
.hdr-nav {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: 0 var(--pad);
}
.hdr-nav .crosshair { margin-right: 8px; }
.hdr-nav .mark { margin-right: 14px; }
.hdr-nav a {
  font-family: var(--grotesk); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 4px 0;
}
.hdr-nav a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:1px; width:0; background:var(--blue);
  transition: width .3s ease;
}
.hdr-nav a:hover::after { width: 100%; }
.hdr-cta {
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(22px, 3vw, 40px);
  font-family: var(--grotesk); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .25s ease;
}
.hdr-cta:hover { background: var(--ink); }
.hdr-cta:hover .arr { transform: translateX(5px); }
.hdr-cta .arr { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.hdr-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-tex {
  position: absolute; left: 0; top: 0; bottom: 0; width: clamp(14px, 3vw, 46px);
  background: url('assets/texture-blue-1.png') center/cover;
  z-index: 1;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) 2fr;
}
.hero-intro {
  padding: clamp(28px, 3.4vw, 52px) clamp(28px, 3vw, 48px) clamp(28px, 3vw, 44px) clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.hero-intro > * { flex-shrink: 0; }
.hero-kicker { display: flex; flex-direction: column; gap: 3px; margin-bottom: clamp(26px, 4vw, 54px); }
.hero-kicker .name {
  font-family: var(--grotesk); font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
  border-bottom: 1px solid var(--blue); padding-bottom: 4px; width: fit-content;
}
.hero-kicker .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-top: 6px; }
.hero-h1 { font-size: clamp(38px, 4.4vw, 68px); margin-bottom: 30px; }
.hero-intro .body-text { margin-bottom: auto; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-deco { display: flex; gap: 26px; margin-top: 40px; color: var(--ink); }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
}
.cell {
  position: relative;
  min-height: 218px;
  padding: 20px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bento .cell:nth-child(3n) { border-right: 0; }
.bento .cell:nth-last-child(-n+3) { border-bottom: 0; }
.bento .cell.has-bgimg { border-right: 0; border-bottom: 0; }

.cell .brand { font-family: var(--grotesk); font-weight: 700; letter-spacing: 0.03em; font-size: 19px; line-height: 1.05; text-transform: uppercase; }
.cell .brand--serif { font-family: var(--serif); font-weight: 600; font-style: italic; }
.cell .ctitle {
  font-family: var(--grotesk); font-weight: 500; font-size: 13px; line-height: 1.32;
  margin-top: 12px; letter-spacing: 0.005em;
  max-width: min(360px, 50%);
}
.cell .casecta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: lowercase;
  padding-top: 14px;
}
.cell.is-light { background: var(--white); color: var(--ink); }
.cell.is-paper { background: var(--paper); color: var(--ink); }
.cell.is-blue { background: var(--blue); color: var(--white); }
.cell.is-dark { background: var(--ink); color: var(--paper); }
.cell.is-photo { background: var(--ink); color: var(--paper); }
.cell.is-blue .casecta, .cell.is-dark .casecta, .cell.is-photo .casecta { color: var(--white); }
.cell .casecta .arr { width: 18px; }

/* placeholder photo wash */
.ph {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.25), rgba(10,10,10,.78)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px),
    #14161c;
}
.ph--blue { background:
    linear-gradient(180deg, rgba(0,30,160,.25), rgba(0,18,90,.7)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px),
    #0a1c8a; }
.ph-label {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(242,239,233,.42);
}
.cell .layer { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }

/* burger / hero image as full-cell background */
.cell-bgimg {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%; border-radius: 0;
}
/* scrim so brand text stays legible over the photo */
.cell.is-light.has-bgimg .layer::before {
  content: ""; position: absolute; inset: -22px -22px auto -22px; height: 60%;
  background: linear-gradient(180deg, var(--paper) 8%, rgba(242,239,233,.72) 42%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.cell.is-blue.has-bgimg .layer::before {
  content: ""; position: absolute; inset: -22px -22px auto -22px; height: 60%;
  background: linear-gradient(180deg, rgba(8,18,68,.78) 6%, rgba(8,18,68,.34) 46%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.cell.is-photo.has-bgimg .layer::before,
.cell.is-dark.has-bgimg .layer::before {
  content: ""; position: absolute; inset: -22px -22px auto -22px; height: 60%;
  background: linear-gradient(180deg, rgba(10,10,12,.72) 6%, rgba(10,10,12,.30) 48%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.cell.has-bgimg .layer { z-index: 2; }
/* case-study link sits over the lower (darker) part of the photo */
.cell.has-bgimg .casecta { color: var(--white); position: relative; z-index: 2; }
.cell.has-bgimg .layer::after {
  content: ""; position: absolute; inset: auto -22px -22px -22px; height: 38%;
  background: linear-gradient(0deg, rgba(10,10,10,.55) 4%, transparent 100%);
  z-index: 1; pointer-events: none;
}
/* light-image cells: keep dark overlay text + a light bottom scrim */
.cell.is-bglight.has-bgimg .casecta { color: var(--ink); }
.cell.is-bglight.has-bgimg .layer::after {
  background: linear-gradient(0deg, rgba(247,245,240,.85) 6%, transparent 100%);
}
.cell-img.is-blue-img { background:
    radial-gradient(120% 120% at 70% 20%, rgba(255,255,255,.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px),
    var(--blue); }

/* Google dotted silhouette helper */
.dots {
  position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(120% 90% at 65% 60%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 65% 60%, #000 0%, transparent 62%);
}

/* ---------- Logo strip ---------- */
.logostrip {
  background: var(--paper);
  position: relative;
}
.logostrip .strip-tex {
  position: absolute; left: 0; top: -1px; bottom: -1px; width: clamp(14px, 3vw, 46px);
  background: url('assets/texture-blue-1.png') center/cover;
  z-index: 1;
}
.logostrip .wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap;
  padding-left: max(var(--pad), clamp(40px, 6vw, 86px));
}
.logostrip .lw {
  font-family: var(--grotesk); font-weight: 700; font-size: 17px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink); opacity: .82;
}

/* client logo rotation slots */
.clients-wrap { flex-wrap: nowrap; }
.cl-slot {
  position: relative;
  height: 38px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 132px;
  overflow: hidden;
}
.cl-slot .lg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease;
}
.cl-slot .lg img {
  max-height: 28px; max-width: 84%;
  width: auto; height: auto;
  opacity: .8;
}
.cl-slot .lg.enter { transform: translateY(120%); opacity: 0; }
.cl-slot .lg.exit { transform: translateY(-120%); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .cl-slot .lg { transition: none; }
}
@media (max-width: 1080px) { .cl-slot:nth-child(n+7) { display: none; } }
@media (max-width: 880px)  { .cl-slot:nth-child(n+6) { display: none; } }
@media (max-width: 700px)  { .cl-slot:nth-child(n+5) { display: none; } }

/* ---------- Split (Creative / Advisor) ---------- */
.split {
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.split-col.left { background: var(--ink); color: var(--paper); }
.split-col.left .body-text { color: var(--muted-dk); }
.split-col { padding: clamp(46px, 6vw, 92px) clamp(30px, 4vw, 64px); display: flex; flex-direction: column; }
.split-col.right { text-align: left; }
.split-col .tag { margin-bottom: 22px; }
.split-h { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 24px; }
.split-col .body-text { color: var(--muted); margin-bottom: 32px; }
.split-col .textlink { margin-top: auto; }
.split-portrait {
  position: relative; overflow: hidden; background: var(--paper);
  width: clamp(360px, 34vw, 500px);
}
.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.split-vert {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--muted); text-transform: uppercase;
}

/* brush portrait built from real texture + silhouette mask */
.portrait {
  position: relative; width: 100%; height: 78%;
  align-self: center;
}
.portrait .silbase {
  position: absolute; inset: 0;
  background: linear-gradient(158deg, #d3d0cb, #8d8a86 55%, #3c3b3a);
  -webkit-mask: var(--head-mask) center/contain no-repeat;
          mask: var(--head-mask) center/contain no-repeat;
}
.portrait .photo {
  position: absolute; inset: 0;
  background: url('assets/texture-blue-2.png') center 22%/cover;
  filter: grayscale(1) contrast(1.1) brightness(1.7);
  mix-blend-mode: multiply; opacity: .42;
  -webkit-mask: var(--head-mask) center/contain no-repeat;
          mask: var(--head-mask) center/contain no-repeat;
}
.portrait .brush {
  position: absolute; inset: -4% -10%;
  background: url('assets/texture-blue-2.png') center/cover;
  mix-blend-mode: multiply; opacity: .55;
  -webkit-mask: var(--head-mask) center/contain no-repeat;
          mask: var(--head-mask) center/contain no-repeat;
}
.portrait .brush-patch {
  position: absolute;
  background: url('assets/texture-blue-2.png') center/cover;
  mix-blend-mode: screen; opacity: .85;
  -webkit-mask: radial-gradient(70% 80% at 50% 45%, #000 30%, transparent 72%);
          mask: radial-gradient(70% 80% at 50% 45%, #000 30%, transparent 72%);
}
.portrait .blk { position: absolute; background: var(--blue); }
.portrait .blk.front { mix-blend-mode: hard-light; opacity: .9; }

/* ---------- Selected work ---------- */
.selected { background: var(--paper); border-bottom: 1px solid var(--line); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: clamp(40px, 5vw, 70px); padding-bottom: 28px;
}
.work-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.work-card {
  padding: 0 0 26px; border-right: 1px solid var(--line);
}
.work-card:last-child { border-right: 0; }
.work-card .thumb { position: relative; height: 188px; overflow: hidden; margin-bottom: 18px; }
.work-card .meta { padding: 0 20px; }
.work-card .wbrand { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.work-card .wtitle { font-family: var(--grotesk); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; margin: 8px 0 8px; }
.work-card .wdesc { font-family: var(--grotesk); font-size: 13px; color: var(--muted); line-height: 1.45; margin-bottom: 16px; max-width: 26ch; }

/* ---------- Approach ---------- */
.approach { background: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: clamp(40px, 5vw, 64px); }
.approach-grid {
  display: grid; grid-template-columns: 0.85fr repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.approach-intro { padding: clamp(34px, 4vw, 54px) 30px clamp(34px,4vw,54px) 0; border-right: 1px solid var(--line); }
.approach-intro .ah { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 18px; }
.step { padding: clamp(34px, 4vw, 54px) 26px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-num { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--blue); line-height: 1; }
.step-name { font-family: var(--grotesk); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.step-arrow { position: absolute; right: -13px; top: 64px; z-index: 3; color: var(--ink); background: var(--paper); padding: 4px 0; }
.step-img { height: 118px; margin-bottom: 18px; position: relative; overflow: hidden; }
.step-desc { font-family: var(--grotesk); font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 28ch; }

.brush-block { position: absolute; inset: 0; background: url('assets/texture-blue-2.png') center/cover; }
.brush-block.frame { filter: grayscale(1) brightness(1.75) contrast(1.05); }
.brush-block.imagine { filter: saturate(1.25) brightness(1.08); }
.brush-block.build { filter: grayscale(1) brightness(0.82) contrast(1.25); }

/* ---------- Recognition ---------- */
.recognition { background: var(--paper); border-bottom: 1px solid var(--line); }
.rec-grid {
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: center;
  border-top: 1px solid var(--line);
}
.rec-head { padding: clamp(30px,3.4vw,46px) 30px clamp(30px,3.4vw,46px) 0; border-right: 1px solid var(--line); }
.rec-head .rh { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.01em; }
.stat { padding: clamp(30px,3.4vw,46px) 22px; border-right: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4vw, 54px); line-height: 0.96; letter-spacing: -0.01em; }
.stat-lbl { font-family: var(--grotesk); font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.stat .lion { width: 46px; height: 46px; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.footer-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr 1fr;
  border-bottom: 1px solid var(--line-dk);
}
.f-col { padding: clamp(40px, 4.5vw, 66px) clamp(28px, 3vw, 48px); border-right: 1px solid var(--line-dk); }
.f-col:last-child { border-right: 0; }
.f-brand .pd { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.02; letter-spacing: 0.01em; }
.f-brand .daf { font-size: 50px; margin-top: 18px; color: var(--paper); }
.f-mid .fh { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 18px; }
.f-mid .body-text { color: var(--muted-dk); margin-bottom: 28px; }
.f-links { display: flex; flex-direction: column; }
.f-link {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px;
  padding: 16px 0; border-top: 1px solid var(--line-dk);
  font-family: var(--grotesk); font-size: 12px; letter-spacing: 0.04em;
}
.f-link:first-child { border-top: 0; }
.f-link .k { font-weight: 600; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dk); }
.f-link .v { font-family: var(--mono); font-size: 12px; }
.f-link .arr { color: var(--blue); }
.f-link:hover .arr { transform: translateX(5px); }
.f-link .arr { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.footer-tex {
  position: absolute; right: 0; top: 0; bottom: 0; width: 22%;
  background: url('assets/texture-blue-1.png') center/cover; opacity: .5; z-index: 1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 60%); mask: linear-gradient(90deg, transparent, #000 60%);
}
.footer-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-dk);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-intro { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .step-arrow { display: none; }
  .rec-grid { grid-template-columns: 1fr 1fr; }
  .rec-head { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { border-right: 0; }
  .work-row { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split-portrait { order: -1; height: 420px; width: 100%; }
  .portrait-img { position: absolute; inset: 0; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .f-col { border-right: 0; border-bottom: 1px solid var(--line-dk); }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 0; }
  .hdr-nav { display: none; }
  .hdr-logo { padding: 14px 20px; font-size: 24px; }
  .hdr-cta { padding: 0 18px; font-size: 10px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .bento .cell:nth-child(2n) { border-right: 0; }
  .logostrip .wrap { justify-content: flex-start; gap: 28px; }
  .approach-grid, .rec-grid, .work-row { grid-template-columns: 1fr; }
  .step, .stat, .work-card { border-right: 0; }
  .approach-intro { border-bottom: 1px solid var(--line); }
}
