:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f3f3f1;
  --ink: #151515;
  --muted: #74716d;
  --soft: #a6a29c;
  --line: #e6e3df;
  --accent: #10b981;
  --shadow: 0 28px 80px rgba(20, 20, 20, 0.12);
  --radius: 18px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, 1220px);
  margin-inline: auto;
}

.section-pad {
  padding: 92px 0;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 max(20px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.site-nav.scrolled {
  background: rgba(250, 250, 250, 0.88);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(20, 20, 20, 0.05);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer strong {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
}

.brand span {
  color: var(--soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.availability {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
}

.availability span,
.current-card span,
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.availability span,
.current-card span {
  animation: pulse 1.6s ease-in-out infinite;
}

.hero {
  padding-top: 120px;
}

.eyebrow,
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  background: var(--ink);
}

.label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.95fr);
  gap: 70px;
  align-items: end;
}

h1,
h2,
h3,
h4,
blockquote {
  font-family: var(--display);
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0 0 28px;
  font-size: clamp(4rem, 8.8vw, 7.6rem);
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  background: var(--surface-muted);
}

.button-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.button-dark:hover {
  background: #2a2a2a;
}

.button svg,
button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 560px;
  margin: 60px 0 0;
}

.stats dt {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.stats dd,
.about-facts dt,
.project-meta > span,
.timeline span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 14px;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(18px);
}

.current-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.current-card strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 36px;
  animation: marquee 30s linear infinite;
}

.marquee span {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  white-space: nowrap;
}

.marquee i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: 86px;
}

.rich-text {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.rich-text p {
  margin: 0 0 26px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin: 34px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about-facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.work,
.testimonials {
  border-block: 1px solid var(--line);
  background: rgba(243, 243, 241, 0.7);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 62px;
}

.head-rule {
  width: min(280px, 24vw);
  height: 1px;
  background: var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.54;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.project-meta h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.project-meta p {
  margin: 8px 0 0;
  color: var(--muted);
}

.tag-row,
.dark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-row span,
.dark-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}

.services h2,
.testimonials h2 {
  max-width: 720px;
  margin-bottom: 56px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 225px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.service-grid article span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.service-grid h3 {
  margin-top: 52px;
  font-size: 1.15rem;
}

.service-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.75fr);
  gap: 78px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 46px;
  margin-top: 64px;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline article {
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.timeline h3 {
  margin: 9px 0 6px;
  font-size: 1.35rem;
}

.timeline p {
  max-width: 660px;
  margin: 0 0 10px;
  color: var(--muted);
}

.expertise-card {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.label-invert {
  color: rgba(250, 250, 250, 0.55);
}

.expertise-card h3 {
  margin: 34px 0 12px;
  color: rgba(250, 250, 250, 0.6);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dark-tags {
  margin: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250, 250, 250, 0.1);
}

.dark-tags span {
  border-color: rgba(250, 250, 250, 0.12);
  background: rgba(250, 250, 250, 0.06);
  color: rgba(250, 250, 250, 0.88);
}

.expertise-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(250, 250, 250, 0.85);
}

.expertise-card li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.45);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

figure {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px;
}

blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

figcaption {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

figcaption strong,
figcaption span {
  display: block;
}

figcaption span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 70px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: clamp(30px, 5vw, 64px);
  box-shadow: 0 20px 60px rgba(20, 20, 20, 0.05);
}

.contact-card > div > p:not(.label) {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.contact-list a,
.contact-list p {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-weight: 700;
}

.contact-list span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 15px 16px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(20, 20, 20, 0.35);
  box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.06);
}

form button {
  width: 100%;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
}

.form-note {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 0;
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal {
  animation: reveal 700ms ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

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

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .experience-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    width: min(100%, 410px);
    margin: 0 auto;
    order: -1;
  }

  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .section-pad {
    padding: 64px 0;
  }

  .site-nav {
    height: 60px;
    padding-inline: 14px;
  }

  .availability {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero {
    padding-top: 86px;
  }

  .eyebrow,
  .label {
    font-size: 10px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .stats,
  .about-facts,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 22px;
  }

  .section-head {
    align-items: start;
    margin-bottom: 38px;
  }

  .head-rule {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: auto;
  }

  .service-grid h3 {
    margin-top: 34px;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline article::before {
    left: -31px;
  }

  .contact-card {
    padding: 24px;
    border-radius: 18px;
  }

  .contact-list a,
  .contact-list p {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}
