/* ============================================================
   Austin Shea — Commercial Real Estate
   Stylesheet
   ------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Typography (kickers, titles, prose)
   5.  Buttons & links
   6.  Header & navigation
   7.  Hero
   8.  Cards & grids
   9.  Expertise
   10. Timeline (experience)
   11. Selected work
   12. Philosophy
   13. Independent projects
   14. Insights
   15. About
   16. Contact
   17. Footer
   18. Reveal animations
   19. Responsive
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #051a24;
  --ink-2: #0d212c;
  --slate: #273c46;
  --slate-soft: #5a6b73;
  --mist: #f6fcff;
  --mist-dim: #e0ebf0;
  --panel: #f5f7f7;
  --panel-2: #eef2f2;
  --line: rgba(5, 26, 36, 0.1);
  --line-soft: rgba(5, 26, 36, 0.07);
  --white: #ffffff;
  --accent: #a8432f; /* Visplace brand tone, used sparingly */

  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", Consolas, monospace;

  --shadow-btn:
    0 1px 2px 0 rgba(5, 26, 36, 0.1), 0 4px 4px 0 rgba(5, 26, 36, 0.09),
    0 9px 6px 0 rgba(5, 26, 36, 0.05), 0 17px 7px 0 rgba(5, 26, 36, 0.01),
    inset 0 2px 8px 0 rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 4px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(5, 26, 36, 0.13);
  --shadow-header: 0 1px 0 rgba(5, 26, 36, 0.06), 0 8px 24px rgba(5, 26, 36, 0.04);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --container: 1160px;
  --container-narrow: 760px;

  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* offset anchor targets so the sticky header doesn't cover them */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ---------- 4. Typography ---------- */
.section-kicker,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  font-weight: 600;
}

.prose p {
  color: rgba(5, 26, 36, 0.82);
  margin-bottom: 1.15em;
  font-size: 1.05rem;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  opacity: 0.94;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition:
    gap 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.text-link .arrow {
  transition: transform 0.2s var(--ease);
}
.text-link:hover {
  border-color: currentColor;
}
.text-link:hover .arrow {
  transform: translate(2px, -2px);
}
.text-link--invert {
  color: var(--mist);
}

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 11px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.wordmark-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wordmark-text {
  font-size: 1.08rem;
  color: var(--ink);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--slate);
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.nav-link:hover {
  color: var(--ink);
  background: var(--panel);
}
.nav-link.is-active {
  color: var(--ink);
  background: var(--panel-2);
}

.nav-cta {
  padding: 11px 22px;
  font-size: 0.92rem;
}
.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.hero::before {
  /* soft analytical grid wash behind the hero */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 26, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 26, 36, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 880px;
}
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.hero-subhead {
  max-width: 640px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin-bottom: 26px;
}
.hero-lede {
  max-width: 620px;
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  line-height: 1.6;
  color: rgba(5, 26, 36, 0.78);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.credibility-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.credibility-line span {
  color: var(--line);
  margin-inline: 6px;
}

/* ---------- 8. Cards & grids ---------- */
.card-grid {
  display: grid;
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card-title {
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.card-copy {
  color: rgba(5, 26, 36, 0.72);
  font-size: 0.98rem;
}

/* ---------- 9. Expertise ---------- */
.expertise {
  background: var(--panel);
}
.expertise-grid {
  grid-template-columns: repeat(3, 1fr);
}
.expertise-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-soft);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.tag-list li {
  font-size: 0.82rem;
  color: var(--slate);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- 10. Timeline ---------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin-left: 6px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--line), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
}
.timeline-item--compact .timeline-marker {
  border-color: var(--slate-soft);
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.timeline-role {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.timeline-item--compact .timeline-role {
  font-size: 1.12rem;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
}
.timeline-org {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.98rem;
  margin: 6px 0 12px;
}
.timeline-copy {
  color: rgba(5, 26, 36, 0.75);
  font-size: 0.99rem;
  margin-bottom: 10px;
}
.timeline-copy:last-child {
  margin-bottom: 0;
}

/* ---------- 11. Selected work ---------- */
.work {
  background: var(--panel);
}
.work-grid {
  grid-template-columns: repeat(3, 1fr);
}
.work-card {
  position: relative;
  padding-top: 34px;
}
.work-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
}
.work-card .card-title {
  margin-top: 18px;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.disclosure-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--slate);
  font-style: italic;
}

/* ---------- 12. Philosophy ---------- */
.philosophy {
  background: var(--ink);
  color: var(--mist);
}
.philosophy .section-kicker {
  color: rgba(224, 235, 240, 0.7);
}
.philosophy .section-title {
  color: var(--mist);
}
.philosophy-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.principle {
  padding: 8px 8px 8px 0;
}
.principle-num {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(246, 252, 255, 0.42);
  margin-bottom: 14px;
}
.principle-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mist);
  margin-bottom: 10px;
}
.principle-copy {
  color: rgba(224, 235, 240, 0.78);
  font-size: 1rem;
  max-width: 46ch;
}

/* ---------- 13. Independent projects ---------- */
.projects-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  border-radius: var(--radius-xl);
}
.project-card--light {
  background: var(--panel);
  border-color: var(--line-soft);
}
.project-card--dark {
  background: var(--ink);
  border-color: transparent;
  color: var(--mist);
}
.project-card--dark .card-copy {
  color: rgba(224, 235, 240, 0.82);
}
.project-logo {
  display: flex;
  align-items: center;
  height: 78px;
  margin-bottom: 24px;
}
.project-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.project-logo--light img {
  height: 62px;
}
.project-logo--dark img {
  height: 56px;
}
.project-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.project-card--dark .project-status {
  color: rgba(224, 235, 240, 0.6);
}
.project-card .card-copy {
  margin-bottom: 22px;
}
.project-card .text-link {
  margin-top: auto;
}

/* ---------- 14. Insights ---------- */
.insights-grid {
  grid-template-columns: repeat(3, 1fr);
}
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.insight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.insight-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.insight-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}
.insight-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
}
.insight-title {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.insight-summary {
  color: rgba(5, 26, 36, 0.7);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.insight-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.insight-readlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  /* reset so a <button> trigger matches the link styling */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.insight-card.is-clickable {
  position: relative;
}
/* stretched-link: the trigger's overlay makes the whole card clickable */
.insight-readlink--trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.insight-readlink[aria-disabled="true"] {
  color: var(--slate-soft);
  cursor: default;
  pointer-events: none;
}
.insight-readlink .arrow {
  transition: transform 0.2s var(--ease);
}
.insight-readlink:hover .arrow {
  transform: translate(2px, -2px);
}

/* ---------- 14b. Article reader modal ---------- */
.article-modal {
  width: min(680px, calc(100% - 32px));
  max-height: 86vh;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(5, 26, 36, 0.4);
  overflow: hidden;
}
.article-modal[open] {
  display: flex;
  flex-direction: column;
}
.article-modal::backdrop {
  background: rgba(5, 26, 36, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.article-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.article-modal-close:hover {
  background: var(--panel-2);
}
.article-modal-inner {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 4.5vw, 52px);
  padding-top: clamp(40px, 5vw, 56px);
}
.article-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.article-modal-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-modal-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
}
.article-modal-title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.article-modal-content p {
  color: rgba(5, 26, 36, 0.82);
  font-size: 1.02rem;
  line-height: 1.68;
  margin-bottom: 1.1em;
}
.article-help {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--panel);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.article-help-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px !important;
}
.article-help p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 620px) {
  .article-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: auto auto 0;
    border-radius: 20px 20px 0 0;
  }
}

/* ---------- 15. About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.side-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.side-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}
.side-lead {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.side-sub {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.side-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.94rem;
  color: rgba(5, 26, 36, 0.8);
}
.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-list li {
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---------- 16. Contact ---------- */
.contact {
  background: var(--panel);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-lede {
  color: rgba(5, 26, 36, 0.8);
  font-size: 1.05rem;
  margin: 20px 0 32px;
  max-width: 46ch;
}
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-direct-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.contact-direct-link:hover {
  border-color: var(--ink);
  transform: translateX(2px);
}
.contact-direct-label {
  font-weight: 600;
  color: var(--ink);
}
.contact-direct-value {
  font-size: 0.92rem;
  color: var(--slate);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}
.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .optional {
  color: var(--slate-soft);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(5, 26, 36, 0.1);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}
.field-error {
  min-height: 0;
  font-size: 0.82rem;
  color: #b42318;
  margin-top: 6px;
}
.field-error:empty {
  display: none;
}
.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  color: var(--ink);
}
.form-status.is-success {
  background: #eef6f0;
  border-color: #cfe6d6;
}
.form-status.is-error {
  background: #fdecea;
  border-color: #f5c2c0;
}
.form-status a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding-block: 56px 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(246, 252, 255, 0.12);
}
.footer-name {
  font-size: 1.6rem;
  color: var(--mist);
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.92rem;
  color: rgba(224, 235, 240, 0.72);
}
.footer-tagline span {
  margin-inline: 5px;
  color: rgba(246, 252, 255, 0.3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.footer-links a {
  font-size: 0.98rem;
  color: rgba(246, 252, 255, 0.85);
  transition: color 0.18s var(--ease);
}
.footer-links a:hover {
  color: var(--mist);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}
.footer-disclaimer {
  max-width: 640px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(224, 235, 240, 0.55);
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(224, 235, 240, 0.55);
  white-space: nowrap;
}

/* ---------- 18. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
  .expertise-grid,
  .work-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about-side .side-card {
    flex: 1 1 260px;
  }
}

@media (max-width: 1100px) {
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-header);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.25s var(--ease),
      opacity 0.25s var(--ease),
      visibility 0.25s var(--ease);
  }
  .nav-menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    padding: 13px 14px;
    font-size: 1.02rem;
  }
  .nav-cta-mobile {
    display: block;
    margin-top: 10px;
  }
  .nav-cta-mobile .btn {
    width: 100%;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-form {
    order: 2;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .expertise-grid,
  .work-grid,
  .insights-grid,
  .projects-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .card,
  .project-card {
    padding: 26px;
  }
  .project-card {
    padding: 30px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .wordmark-text {
    display: none;
  }
  .timeline-head {
    flex-direction: column;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
