/* ia2 — IA option 2 page layouts on the confirmed 3dc-dusk tokens.
   Loaded after 3dc-dusk.css. No new colours: every value below is a 3dc-dusk variable. */

/* ---------- Header: inline nav on desktop, menu button on phones ---------- */
.site-nav ul { display: flex; align-items: center; gap: 0.25rem 1.75rem; list-style: none; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-nav a:not(.btn):hover { color: var(--accent-text); } }
.site-nav a[aria-current]:not(.btn) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.site-nav .btn[aria-current] { background: var(--accent-text); }
.menu-list a[aria-current] { color: var(--menu-accent); }
@media (max-width: 760px) { .site-nav { display: none; } }
@media (min-width: 761px) { .menu-btn { display: none; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 6rem) 1.5rem; }
.footer-slogan {
  max-width: 14ch; margin-bottom: clamp(2rem, 5vw, 4rem);
  font: 700 var(--step-4)/1.02 var(--font-display); letter-spacing: -0.04em; color: var(--fg);
}
.site-footer .footer-row { padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Pages without the dock (contact, 404) ---------- */
.no-dock { --dock-space: 0px; }

/* ---------- Shared small parts ---------- */
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.section-head .section-title { margin-bottom: 0; }
.section-tight { padding-top: 0; }

/* Stretched link: the whole card is the hit area, the link name stays just the project name. */
/* Padding + equal negative margin: the <a> box itself is >= 44px tall without moving the layout. */
.stretch { display: inline-block; min-width: 44px; padding-block: 0.75rem; margin-block: -0.75rem; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 3px solid var(--ring); outline-offset: 4px; }

/* ---------- Work index (home preview + "other work") ---------- */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-item {
  position: relative; display: grid; align-items: center; column-gap: 1rem; row-gap: 0.125rem;
  grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-areas: "thumb name" "thumb text";
  padding-block: 1rem; border-bottom: 1px solid var(--line);
}
.index-num { display: none; grid-area: num; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.index-name { grid-area: name; align-self: end; font-size: var(--step-1); }
.index-text { grid-area: text; align-self: start; color: var(--muted); }
.index-thumb {
  grid-area: thumb; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--card); border-radius: 18px 0 0 0; box-shadow: 0 0 0 1.5px var(--plane-edge);
}
.index-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.index-arrow { display: none; grid-area: arrow; font-size: var(--step-1); color: var(--accent-text); transition: transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .index-item:hover .index-name { color: var(--accent-text); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .index-item:hover .index-thumb img { transform: scale(1.06); }
  .index-item:hover .index-arrow { transform: translateX(0.35rem); }
}
@media (min-width: 900px) {
  .index-item {
    grid-template-columns: 3.5rem minmax(0, 1.15fr) minmax(0, 1fr) 9rem 2rem;
    grid-template-areas: "num name text thumb arrow"; column-gap: 1.5rem; padding-block: 1.25rem;
  }
  .index-num, .index-arrow { display: block; }
  .index-name { align-self: center; font-size: var(--step-2); }
  .index-text { align-self: center; }
}

/* ---------- Work list page ---------- */
.page-head { padding-block: clamp(2rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { font-size: var(--step-5); letter-spacing: -0.045em; }
.page-head .kicker { margin-bottom: 0.75rem; }
.page-head .lead { margin-top: 1.25rem; max-width: 40ch; font-size: var(--step-1); color: var(--muted); }

.work-cards { list-style: none; display: grid; gap: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.work-card { position: relative; display: grid; gap: 0.375rem; align-content: start; }
.work-card-media {
  order: -1; margin-bottom: 1.25rem; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--card); border-radius: var(--r-big) 0 0 0; box-shadow: 0 0 0 1.5px var(--plane-edge);
}
.work-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.work-card-num { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.work-card-title { font-size: var(--step-3); }
.work-card-text { font-size: 1.125rem; color: var(--muted); max-width: 36ch; }
.work-card-more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-weight: 600; color: var(--accent-text); }
.work-card-more::after { content: "\2192"; transition: transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .work-card:hover .work-card-title { color: var(--accent-text); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-card:hover .work-card-media img { transform: scale(1.03); }
  .work-card:hover .work-card-more::after { transform: translateX(0.35rem); }
}
@media (min-width: 760px) {
  .work-cards { grid-template-columns: 1fr 1fr; }
  .work-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .work-card:first-child { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-content: end; }
  .work-card:first-child .work-card-media { grid-column: 1; grid-row: 1 / span 5; margin: 0; aspect-ratio: 1050 / 1180; }
  .work-card:first-child .work-card-media img { object-fit: cover; }
  .work-card:first-child > :not(.work-card-media) { grid-column: 2; }
  .work-card:first-child .work-card-title { font-size: var(--step-4); }
  .work-card:first-child > .work-card-num { align-self: end; }
}

/* ---------- Contact call-to-action band (one CTA, no form) ---------- */
.cta-band {
  display: grid; gap: 1.5rem 3rem; padding: clamp(2rem, 6vw, 5rem);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-big) 0 0 0;
}
.cta-band h2 { font-size: var(--step-4); }
.cta-band p { margin-top: 1rem; max-width: 38ch; font-size: var(--step-1); color: var(--muted); }
.cta-band .btn { justify-self: start; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* ---------- Short case pages ---------- */
.case-head { display: grid; gap: 1.5rem 3rem; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem); }
.case-head h1 { font-size: var(--step-5); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.case-head h1.nowrap { font-size: min(var(--step-5), 13vw); } /* rentsons.com stays on one line at 360px */
.case-head .case-sub { margin-top: 0; }
.case-aside { display: grid; gap: 1.25rem; align-content: end; justify-items: start; }
.case-note { color: var(--muted); }
@media (min-width: 1024px) {
  .case-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .case-head .back { grid-column: 1 / -1; margin-bottom: 0; }
}
.case-frame {
  display: grid; place-items: center; aspect-ratio: 16 / 9; padding: clamp(1rem, 4vw, 3.5rem);
  background: var(--card); border-radius: var(--r-big) 0 0 0; box-shadow: var(--photo-edge);
}
.case-frame img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 599px) { .case-frame { aspect-ratio: 4 / 3; } }

/* ---------- PH I MOA palette ---------- */
.swatches { list-style: none; display: grid; gap: 1rem; max-width: 52rem; }
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
.swatch { display: grid; gap: 0.25rem; }
.swatch-chip {
  aspect-ratio: 4 / 3; margin-bottom: 0.75rem; background: var(--chip);
  border-radius: var(--r-mid) 0 0 0; box-shadow: 0 0 0 1.5px var(--plane-edge);
}
.swatch-name { font-weight: 700; font-size: 1.125rem; }
.swatch code { font: 600 1rem/1.4 var(--font-body); color: var(--muted); }

/* ---------- About ---------- */
.services-ia2 { list-style: none; display: grid; border-top: 1px solid var(--line); counter-reset: svc; }
.services-ia2 li {
  counter-increment: svc; display: flex; align-items: baseline; gap: 1.25rem;
  padding-block: 1.25rem; border-bottom: 1px solid var(--line);
  font: 700 var(--step-3)/1.1 var(--font-display); letter-spacing: -0.03em;
}
.services-ia2 li::before {
  content: counter(svc, decimal-leading-zero); flex: none; min-width: 2ch;
  font-size: 1rem; letter-spacing: 0; color: var(--accent-text); font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) { .services-ia2 { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* ---------- Contact page ---------- */
.contact-page { display: grid; gap: 2.5rem 4rem; padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.contact-intro h1 { font-size: var(--step-5); letter-spacing: -0.045em; }
.contact-intro p { margin-top: 1.5rem; max-width: 34ch; font-size: var(--step-1); color: var(--muted); }
.form-card {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-big) 0 0 0;
}
.form-ia2 { max-width: none; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .contact-page { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .contact-intro { position: sticky; top: 2rem; }
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.req { font-weight: 400; color: var(--muted); }
.choices { display: grid; gap: 0.5rem; min-inline-size: 0; margin: 0 0 0.5rem; padding: 0; border: 0; }
.choices legend { margin-bottom: 0.75rem; padding: 0; font-weight: 700; font-size: 1.125rem; }
.choice {
  position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.625rem 1rem;
  background: var(--field-bg); border: 2px solid var(--field-border); border-radius: var(--field-radius); cursor: pointer;
}
/* The real radio covers the whole label (hit box = label); ::before draws the visible dot. */
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 2px solid var(--field-border); box-shadow: inset 0 0 0 3px var(--field-bg);
}
.choice:has(input:checked)::before { border-color: var(--accent); background: var(--accent); }
@media (forced-colors: active) { .choice:has(input:checked)::before { forced-color-adjust: none; background: Highlight; } }
.choice:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--accent-text); } }

/* ---------- 404 ---------- */
.notfound { display: grid; gap: 1rem; padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.notfound-mark { font: 800 clamp(6rem, 3rem + 18vw, 18rem)/0.82 var(--font-display); letter-spacing: -0.06em; color: var(--accent-text); }
.notfound h1 { margin-top: 1rem; font-size: var(--step-4); max-width: 18ch; }
.notfound p:not(.notfound-mark) { max-width: 40ch; font-size: var(--step-1); color: var(--muted); }
