/* =========================================================
   Page-specific styles
   ========================================================= */

/* ============ HOME — Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 100px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 60px; }
}
.hero-copy .eyebrow { margin-bottom: 24px; display: block; }
.hero-copy h1 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 28px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--walnut);
}
.hero-copy .lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid oklch(0.95 0.01 80 / 0.4);
  pointer-events: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.hero-meta .cell {
  padding-right: 24px;
}
.hero-meta .num {
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 1;
  color: var(--walnut);
  margin-bottom: 8px;
}
.hero-meta .lbl {
  font-family: var(--f-mark);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ Section primitives ============ */
.section { padding: 90px 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}
.section-head h2 { max-width: 720px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .link {
  font-family: var(--f-mark);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
}

/* ============ HOME — Tables feature ============ */
.tables-feature {
  background: var(--bg-deep);
  padding: 100px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tables-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .tables-grid { grid-template-columns: 1fr; gap: 40px; } }

.tables-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.tables-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tables-copy h2 { margin-bottom: 24px; font-style: italic; font-weight: 400; }
.tables-copy h2 em { font-style: normal; color: var(--walnut); }
.tables-copy p { color: var(--ink-soft); font-size: 18px; max-width: 520px; }

.specs {
  list-style: none;
  padding: 0;
  margin: 32px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.specs li {
  background: var(--bg-deep);
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
}
.specs li:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--rule);
  padding-left: 0;
}
.specs li:nth-child(even) {
  padding-left: 24px;
}
@media (max-width: 1180px) {
  .specs { grid-template-columns: 1fr; }
  .specs li:nth-child(odd) { border-right: 0; padding-right: 0; }
  .specs li:nth-child(even) { padding-left: 0; }
}
.specs .k {
  font-family: var(--f-mark);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.specs .v {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.3;
}

/* ============ HOME — Featured portfolio strip ============ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.featured-grid figure { margin: 0; position: relative; overflow: hidden; }
.featured-grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.featured-grid figure:hover img { transform: scale(1.03); }
.featured-grid figure figcaption {
  padding: 16px 4px 0;
  font-family: var(--f-display);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
}
.featured-grid figure figcaption .small {
  display: block;
  font-family: var(--f-mark);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-muted);
  margin-top: 6px;
}
.f-a { grid-column: span 7; aspect-ratio: 4/3; }
.f-b { grid-column: span 5; aspect-ratio: 4/5; }
.f-c { grid-column: span 5; aspect-ratio: 4/5; }
.f-d { grid-column: span 7; aspect-ratio: 4/3; }
@media (max-width: 800px) {
  .f-a, .f-b, .f-c, .f-d { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ============ HOME — Process ============ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
@media (max-width: 800px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }
.process .step {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  counter-increment: step;
}
.process .step::before {
  content: "0" counter(step);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brass-ink);
  display: block;
  margin-bottom: 14px;
}
.process .step h4 {
  font-family: var(--f-display);
  font-size: 24px;
  margin-bottom: 10px;
}
.process .step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ============ HOME — About teaser ============ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
  background: var(--ink);
  color: oklch(0.92 0.01 80);
  padding: 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .about-teaser { grid-template-columns: 1fr; padding: 48px; gap: 32px; }
}
.about-teaser h2 { color: var(--paper); font-style: italic; font-weight: 400; margin-bottom: 24px; }
.about-teaser h2 em { font-style: normal; color: var(--brass); }
.about-teaser p { font-size: 18px; color: oklch(0.85 0.01 80); }
.about-teaser .eyebrow { color: var(--brass); display: block; margin-bottom: 18px; }
.about-teaser .btn-ghost { color: var(--paper); border-color: var(--paper); margin-top: 12px; }
.about-teaser .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.about-teaser .portrait {
  aspect-ratio: 4/5;
  background: var(--walnut-deep);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-teaser .portrait img {
  display: block;
}
.about-teaser .portrait .mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: oklch(0.75 0.02 80);
  text-align: center;
}
.about-teaser .portrait .mono span { display: block; }
.about-teaser .portrait .mono .label { color: var(--brass); margin-bottom: 8px; }

/* ============ HOME — CTA ============ */
.cta {
  text-align: center;
  padding: 100px 0;
}
.cta h2 {
  font-style: italic;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 18px;
}
.cta h2 em { font-style: normal; color: var(--walnut); }
.cta p { font-size: 18px; color: var(--ink-soft); max-width: 580px; margin: 0 auto 32px; }
.cta .actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
