/* Homepage (D060): one building at dusk. The building's photograph is the hero and the claim
 * sits in its sky; the dot ground marks drawn and measured surfaces only (What we build, the
 * plan and section, Technical depth). Colour and type come from tokens.css; the values below
 * are the homepage's own surfaces. The shared header sits over the hero (chrome.css, data-over). */

.home {
  --pad:clamp(1.25rem,5.2vw,5rem);
  --edge:max(var(--pad),calc((100% - 1600px) / 2 + var(--pad)));
  --ground:#f5f7f8;
  --ground-dot:#c3cbd0;
  --quiet:#687984;
  --dusk-text:#f3f5f6;
  --dusk-muted:#a7b0b5;
  --dusk-body:#c9d0d4;
  --berry-dusk:#c96a83;
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font:16px/1.6 var(--sans);
  -webkit-font-smoothing:antialiased;
  position:relative;
}
.home *,.home *::before,.home *::after { box-sizing:border-box; }
.home a { color:inherit; text-underline-offset:5px; }
.home :focus-visible { outline:3px solid var(--berry-deep); outline-offset:5px; }
.home .hero :focus-visible,.home .dark :focus-visible { outline-color:var(--bone); }
.skip { position:absolute; left:-9999px; top:0; z-index:5; padding:.6rem 1rem; background:var(--ink); color:#fff; }
.skip:focus { left:1rem; top:1rem; }

.wrap { padding-inline:var(--edge); }
.eyebrow { display:block; margin:0; font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.rule { display:block; width:56px; border-top:2px solid var(--berry); margin:18px 0; }
.claim { margin:0; font:400 clamp(28px,2.8vw,40px)/1.15 var(--serif); letter-spacing:-.012em; text-wrap:balance; }
.claim .lead { color:var(--quiet); }
h1.claim { font-size:clamp(34px,3.8vw,56px); line-height:1.1; }
.button { display:inline-block; justify-self:start; font:600 14px var(--sans); padding:12px 20px; background:var(--berry-deep); color:#fff; text-decoration:none; }
.home a.button { color:#fff; }
.button:hover { background:#6f3243; }
section { padding-block:96px; }
.head { display:grid; max-width:780px; margin-bottom:48px; }

/* hero: the photograph is the ground, the claim in its sky */
.hero { position:relative; display:flex; flex-direction:column; justify-content:flex-start; min-height:clamp(640px,100svh,1000px);
  padding-block:calc(92px + clamp(40px,7vh,96px)) 0; background:var(--deep); color:var(--dusk-text); overflow:hidden; }
.hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 70%; }
.hero-text { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,380px); column-gap:64px; align-items:end; }
.hero .eyebrow { color:var(--dusk-muted); }
.hero .rule { border-color:var(--berry-dusk); margin-top:22px; }
.hero h1 .lead { color:var(--dusk-muted); }
.hero .side { display:grid; gap:24px; padding-bottom:6px; }
.hero .side p { margin:0; color:var(--dusk-body); max-width:44ch; }
.hero .button { background:var(--berry); }
.hero .button:hover { background:var(--berry-deep); }

/* the drafting ground */
.ground { background-image:radial-gradient(circle,var(--ground-dot) 1px,transparent 1.25px); background-size:24px 24px; background-position:12px 12px; }

/* What we build */
.build { padding-bottom:72px; }
.three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px; }
.three article { border-top:1px solid var(--muted); padding-top:28px; display:grid; grid-template-rows:auto auto 1fr auto; gap:12px; min-width:0; }
.ico { width:112px; height:112px; border-radius:50%; background:var(--ground); margin:-8px 0 0 -8px; padding:8px; }
.ico img { display:block; width:96px; height:96px; }
.three h3 { margin:0; font:400 26px/1.2 var(--serif); }
.three p { margin:0; color:var(--muted); max-width:46ch; }
.meta { border-top:1px solid var(--line); padding-top:12px; font-size:14px; color:var(--quiet); }
.service-foot { margin:48px 0 0; max-width:72ch; color:var(--muted); }
.service-foot a { color:var(--ink); white-space:nowrap; }

/* the plan and section of the building */
.blueprint { border-top:1px solid #d4dadd; padding-block:clamp(56px,7vw,104px); }
.blueprint img { display:block; width:100%; height:auto; max-width:1440px; margin-inline:auto; }

/* Technical depth, on deep slate */
.dark { background-color:var(--deep); color:#eef1f2;
  background-image:radial-gradient(circle,rgba(241,238,229,.10) 1px,transparent 1.25px); background-size:24px 24px; background-position:12px 12px; }
.dark .eyebrow,.dark .claim .lead { color:var(--dusk-muted); }
.dark .rule { border-color:var(--berry-dusk); }
.strip { display:block; width:100%; height:300px; object-fit:cover; object-position:center 45%; }
.four { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; margin:40px 0 0; }
.four div { border-top:1px solid #4a5862; padding-top:12px; min-width:0; }
.four dt { font-weight:600; margin-bottom:4px; text-wrap:balance; }
.four dd { margin:0; color:var(--dusk-muted); font-size:15px; }

/* photograph beside text */
.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-block:1px solid #d4dadd; }
.split + .split,.split + section,section + .split { border-top:0; }
.split .text { display:grid; align-content:center; gap:22px; padding:72px var(--edge) 72px 56px; }
.split.cta .text { padding:72px 56px 72px var(--edge); }
.split p { margin:0; color:var(--muted); max-width:56ch; }
.split figure { margin:0; position:relative; min-height:460px; overflow:hidden; }
.split figure img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.small-label { font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--quiet); }
.bio .lede { font:400 20px/1.45 var(--serif); color:var(--ink); }
.bio .past-role { font-size:14px; color:var(--quiet); border-top:1px solid #d4dadd; padding-top:14px; }
.cta .email { font-size:15px; color:var(--ink); }

/* Recent work */
.work { padding-block:96px; }
.cases { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; }
.case { border-top:1px solid var(--muted); padding-top:24px; display:grid; align-content:start; gap:12px; min-width:0; }
.case h3 { margin:0; font:400 24px/1.25 var(--serif); text-wrap:balance; }
.case p { margin:0; color:var(--muted); max-width:52ch; }

@media (max-width:1050px) {
  .hero-text { grid-template-columns:minmax(0,1fr); row-gap:28px; }
  .four { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  section,.work { padding-block:60px; }
  .hero { min-height:0; padding-top:calc(150px + 24px); }
  .hero-bg { position:static; order:3; height:auto; aspect-ratio:1/1; object-position:50% 74%; margin-top:32px; }
  .three,.cases { grid-template-columns:minmax(0,1fr); gap:32px; }
  .split { grid-template-columns:minmax(0,1fr); }
  .split .text,.split.cta .text { padding:36px var(--edge) 44px; }
  .split figure { min-height:260px; order:-1; }
  .strip { height:190px; }
}
@media (max-width:480px) {
  .four { grid-template-columns:minmax(0,1fr); }
}
