@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");

:root {
  --ink: #172019;
  --forest: #18352b;
  --paper: #f7f3e9;
  --cream: #e9dfca;
  --gold: #805016;
  --white: #fffdf7;
  --line: rgba(23, 32, 25, 0.2);
  --focus: #ffffff;
  --focus-ring: #7a3e00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 0.14em; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.inline-icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 7px var(--focus-ring);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 5rem;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 233, 0.96);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.brand-logo { width: 2.9rem; height: 3.3rem; object-fit: contain; mix-blend-mode: multiply; }
nav { display: flex; justify-content: center; gap: clamp(0.8rem, 2.5vw, 2.5rem); }
nav a, .wa { font-size: 0.82rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.wa { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 0.9rem; border: 1px solid currentColor; }

main > section { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7.5rem); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { max-width: 18ch; font-family: "Libre Caslon Display", serif; font-weight: 400; line-height: 1.05; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.8rem, 9vw, 8.5rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 2.5rem; font-size: clamp(2.25rem, 5vw, 4.8rem); letter-spacing: -0.035em; }
h3 { line-height: 1.25; }
em { color: var(--gold); font-weight: inherit; }
.section-label { margin-bottom: 1rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr); align-items: center; gap: clamp(3rem, 8vw, 9rem); min-height: calc(100vh - 5rem); }
.hero h2 { margin-bottom: 1rem; font-family: "DM Sans", sans-serif; font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: 0; }
.role { font-weight: 600; }
.meta { margin-top: 1.5rem; color: #445148; font-size: 0.9rem; }
.portrait { position: relative; width: 100%; margin: 0; padding: 0 0 1.4rem 1.4rem; }
.portrait::before { content: ""; position: absolute; inset: 8% 8% 0 0; z-index: -1; background: var(--forest); }
.portrait::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: -1; width: 45%; height: 42%; background: var(--gold); }
.portrait img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 27%; filter: saturate(0.88) contrast(1.04); }
.portrait figcaption { position: absolute; right: -1.5rem; bottom: 3.5rem; display: grid; gap: 0.1rem; max-width: 13rem; padding: 1rem 1.2rem; color: var(--white); background: var(--forest); box-shadow: 0 1rem 2rem rgba(16, 25, 20, 0.22); }
.portrait figcaption strong { color: #f0c27d; font-family: "Libre Caslon Display", serif; font-size: 1.35rem; font-weight: 400; }
.portrait figcaption span { font-size: 0.76rem; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.08em; }

.btn { display: inline-block; margin-top: 1rem; padding: 0.95rem 1.2rem; color: var(--white); background: var(--forest); font-weight: 700; text-decoration: none; }
.btn:hover { background: #285142; text-decoration: underline; }
.dark { color: var(--white); background: var(--forest); }
.dark p { color: #e6ede8; }
.dark .section-label { color: #e7b56f; }
.cream { background: var(--cream); }
.intro, .split, .contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(3rem, 10vw, 10rem); }
.intro > p { max-width: 44rem; font-size: clamp(1.05rem, 2vw, 1.35rem); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid article { min-height: 15rem; padding: clamp(1.5rem, 4vw, 3rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 180ms ease, transform 180ms ease; }
.grid article:hover { background: rgba(176, 120, 48, 0.08); transform: translateY(-3px); }
.dark .grid { border-color: rgba(255, 255, 255, 0.25); }
.dark .grid article { border-color: rgba(255, 255, 255, 0.25); }
.card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 2rem; color: var(--gold); border: 1px solid currentColor; border-radius: 50%; }
.card-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dark .card-icon { color: #e7b56f; }
.case > span { display: block; margin-bottom: 2rem; color: var(--gold); font-size: 2rem; font-weight: 700; }

.steps, .timeline, .tags, .language-list { margin: 0; padding: 0; list-style: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 2rem 1.5rem 0 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 1.5rem; }
.steps span, .timeline span { color: var(--gold); font-weight: 700; }
.lead { max-width: 44rem; font-size: 1.2rem; }
.timeline { margin-top: 4rem; }
.timeline li { display: grid; grid-template-columns: 5rem minmax(12rem, 0.6fr) minmax(0, 1fr); gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline h3, .timeline p { margin-bottom: 0; }
.language-list li + li { margin-top: 0.55rem; }
.case-tags { color: #5f4a2d; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tags li { padding: 0.65rem 1rem; border: 1px solid var(--ink); border-radius: 999px; }
.contact { color: var(--white); background: #101914; }
.contact-mark { display: grid; place-items: center; min-height: 24rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--cream); }
.contact-mark img { display: block; width: min(100%, 32rem); height: auto; mix-blend-mode: multiply; }
.contact p { color: #dbe3dd; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.contact-links a, .social-link { display: inline-flex; align-items: center; gap: 0.55rem; }
.contact .btn { color: var(--ink); background: var(--cream); }
.mail { overflow-wrap: anywhere; }
footer { padding: 2rem clamp(1.25rem, 7vw, 7.5rem); color: var(--white); background: #101914; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; gap: 1rem; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.3rem; }
  .hero, .intro, .split, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .portrait { width: min(100%, 35rem); justify-self: center; }
  .portrait figcaption { right: -0.5rem; }
  .grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .brand span:last-child { display: none; }
  .brand-logo { width: 2.4rem; height: 2.8rem; }
  .site-header { padding-inline: 1rem; }
  nav { gap: 1.2rem; }
  nav a { white-space: nowrap; }
  main > section { padding-inline: 1.25rem; }
  .grid, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 1.5rem 0; border-right: 0; }
  .timeline li { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .timeline p { grid-column: 2; }
  .portrait { padding: 0 0 0.9rem 0.9rem; }
  .portrait figcaption { right: 0; bottom: 2rem; max-width: 11rem; padding: 0.8rem 1rem; }
}

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