/* ============================================================
   TNE — Pages (about / services / contact / case study / article /
              work archive / journal archive / 404)
   Aggregated styles that were originally inline in each static
   template <style> block.
   ============================================================ */

/* ───── PAGE INTRO (shared header treatment) ─────────── */
/* (already in components.css — kept overrides only) */
.page-intro h1 em,
.page-intro h1 .italic { color: var(--accent); font-style: normal; }

/* ───── CASE STUDY (single-work) ─────────────────────── */
.case-intro { padding: 180px var(--gutter) 56px; }
@media (max-width: 900px) { .case-intro { padding-top: 130px; } }
.case-intro .crumbs { margin-bottom: 32px; }
.case-title { margin: 0 0 64px; }
.case-title em { color: var(--accent); font-style: normal; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
.case-meta-cell { display: flex; flex-direction: column; gap: 6px; }
.case-meta-val { font-family: var(--f-sans); font-size: 15px; font-weight: 500; }

.case-hero { padding: 24px 0; }

.next-project {
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-9) var(--gutter);
  position: relative;
  overflow: hidden;
}
.next-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  max-width: var(--container);
  margin: 0 auto;
}
.next-eyebrow { grid-column: 1 / -1; }
.next-eyebrow .mono-sm { color: rgba(244,241,235,.55); }
.next-title { margin: 32px 0 0; color: var(--bg); }
.next-title em { color: var(--accent); font-style: normal; }
.next-arrow {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.next-arrow svg { width: 36px; height: 36px; }
.next-link:hover .next-arrow { background: var(--accent); color: var(--bg); transform: translateX(12px) rotate(-8deg); }

/* ───── ARTICLE (single-journal) ─────────────────────── */
.article-head { padding: 160px var(--gutter) 56px; }
@media (max-width: 900px) { .article-head { padding-top: 120px; } }
.article-head .crumbs { margin-bottom: 24px; }
.article-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.article-title { margin: 0 0 32px; }
.article-title em { color: var(--accent); font-style: normal; }
.article-dek {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  max-width: 36ch;
  margin: 0 0 48px;
  color: var(--ink-soft);
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.article-meta-r { display: flex; gap: 24px; align-items: center; }
.t-row { display: flex; align-items: center; gap: 12px; }
.t-row .t-avatar { width: 40px !important; height: 40px !important; }
.article-cover { padding: 24px 0 80px; }
.article-body { padding-bottom: var(--s-10); }
.article-prose {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-prose h2,
.article-prose h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 24px;
}
.article-prose h2 { font-size: clamp(28px, 3vw, 40px); }
.article-prose h3 { font-size: clamp(22px, 2.2vw, 30px); }
.article-prose p,
.article-prose ul,
.article-prose ol { margin: 0 0 24px; }
.article-prose ol,
.article-prose ul { padding-left: 24px; }
.article-prose li { margin: 12px 0; }
.article-prose a { color: var(--ink); border-bottom: 1px solid var(--accent); transition: color 220ms; }
.article-prose a:hover { color: var(--accent); }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose blockquote {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0;
  padding: 32px 0 32px 32px;
  border-left: 4px solid var(--accent);
  max-width: 28ch;
}
.article-end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ───── ABOUT — principles grid ──────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; gap: 32px; } }
.principle { display: flex; flex-direction: column; gap: 12px; }
.p-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }
.principle h3 { margin: 0 0 4px; }

/* ───── SERVICES OVERVIEW ────────────────────────────── */
.service-block { padding: 96px 0; border-top: 1px solid var(--line); }
.service-block .container { display: grid; grid-template-columns: 1fr; gap: 40px; }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; }
.svc-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.svc-body h2 { margin: 0 0 32px; }
.svc-body h2 em { color: var(--accent); font-style: normal; }
.svc-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .svc-cols { grid-template-columns: 1fr; gap: 24px; } }
.svc-deliv {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.svc-deliv li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.svc-deliv li:first-child { border-top: none; }
@media (max-width: 720px) { .svc-deliv { columns: 1; } }

/* ───── CONTACT ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
@media (max-width: 900px) { .contact-info { position: static; } }
.ci-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ci-h {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.ci-list { display: flex; flex-direction: column; }
.ci-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 220ms, color 220ms;
  gap: 16px;
}
.ci-row:first-child { border-top: none; }
.ci-row:hover { padding-left: 8px; color: var(--accent); }
.ci-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ci-val { font-size: 15px; font-weight: 500; }
.ci-clock {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.ci-clock-val { font-family: var(--f-mono); font-size: 14px; color: var(--ink); }

/* ───── WORK ARCHIVE ─────────────────────────────────── */
.load-more { display: flex; justify-content: center; padding: 48px 0 0; }

/* ───── JOURNAL ARCHIVE / SEARCH (list) ──────────────── */
.journal-list { border-top: 1px solid var(--ink); }
.jl-row {
  display: grid;
  grid-template-columns: 60px 120px 1fr 140px 40px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 320ms var(--ease-out);
}
.jl-row:hover { padding-left: 16px; }
.jl-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.jl-text h3 { margin: 0 0 8px; }
.jl-author { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jl-date { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: right; }
.jl-arrow { font-family: var(--f-display); font-size: 22px; color: var(--muted); transition: transform 220ms var(--ease-out), color 220ms var(--ease-out); }
.jl-row:hover .jl-arrow { color: var(--accent); transform: translateX(6px); }
@media (max-width: 900px) {
  .jl-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .jl-num, .jl-cat, .jl-date { font-size: 11px; grid-column: 1; }
  .jl-text { grid-column: 1; }
  .jl-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ───── 404 ──────────────────────────────────────────── */
.four-main { min-height: calc(100vh - 60px); display: flex; align-items: center; }
.four-stage { position: relative; width: 100%; padding: 160px var(--gutter) 96px; overflow: hidden; }
.four-container { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; }
.four-meta { margin-bottom: 32px; }
.four-headline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
}
.four-headline em { color: var(--accent); font-style: normal; }
.four-body { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 480px; color: var(--ink-soft); margin: 0 0 40px; }
.four-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 80px; }
.four-suggest { padding-top: 32px; border-top: 1px solid var(--line); }
.four-links { display: flex; flex-direction: column; max-width: 480px; }
.four-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  transition: padding-left 320ms var(--ease-out), color 320ms var(--ease-out);
}
.four-link:first-child { border-top: none; }
.four-link span { font-family: var(--f-sans); font-size: 18px; color: var(--muted); transition: transform 320ms var(--ease-out), color 320ms var(--ease-out); }
.four-link:hover { padding-left: 12px; color: var(--accent); }
.four-link:hover span { transform: translateX(6px); color: var(--accent); }
.four-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--gutter);
  pointer-events: none;
  overflow: hidden;
}
.four-bg span {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(280px, 48vw, 720px);
  line-height: 0.8;
  color: var(--bg-deep);
  letter-spacing: -0.05em;
}
.four-bg span.italic { color: var(--accent); opacity: 0.12; font-style: normal; }
@media (max-width: 900px) { .four-bg { opacity: 0.5; } }

/* ───── CTA (shared on archives + page templates) ────── */
.cta-card { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: 80px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cta-card .cta-headline { margin: 0; }
.cta-card .cta-headline em,
.cta-card .cta-headline .italic { color: var(--accent); font-style: normal; }
.cta-foot { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cta-foot .btn { background: var(--bg); color: var(--ink); }
.cta-foot .btn:hover { background: var(--accent); color: var(--bg); }
.cta-foot .link-arrow { color: var(--bg); border-color: rgba(244,241,235,0.3); }
