:root {
  color-scheme: dark;
  --background: #101110;
  --surface: #181a17;
  --text: #f5f3eb;
  --muted: #b6b9b0;
  --gold: #d7bb78;
  --line: #383c32;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.65; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; font-weight: 500; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; background: var(--gold); color: #101110; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wordmark { font-size: 1.3rem; font-weight: 600; text-decoration: none; letter-spacing: -.04em; }
.wordmark span { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.nav-contact { color: var(--gold); }
.hero { padding-block: 60px 48px; display: grid; gap: 40px; }
.eyebrow, .project-category { color: var(--gold); font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; }
.eyebrow { margin-bottom: 24px; }
h1 { font-size: clamp(2.65rem, 5.2vw, 4.75rem); letter-spacing: -.055em; max-width: 780px; }
h1 span { color: var(--gold); }
.intro { font-size: 1.0625rem; color: var(--muted); margin-top: 30px; max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 24px; background: var(--gold); color: #101110; text-decoration: none; font-size: 1rem; font-weight: 600; border: 1px solid var(--gold); }
.button:hover { color: #101110; background: #ead39f; }
.text-link { display: inline-block; padding-block: 10px; font-size: 1rem; }
.portrait { width: 100%; max-width: 430px; align-self: center; }
.portrait img { width: 100%; height: 400px; object-fit: cover; object-position: center 30%; border-radius: 2px; }
.portrait figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; font-size: .875rem; color: var(--muted); }
.portrait figcaption span:first-child { color: var(--text); font-size: 1rem; }
.expertise-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px; border-block: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.section { padding-block: 72px; }
.section-heading { display: grid; gap: 24px; margin-bottom: 40px; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.045em; }
.section-heading > p { color: var(--muted); max-width: 410px; align-self: end; }
.services-grid { display: grid; }
.service { border-top: 1px solid var(--line); padding-block: 30px; }
.service-label { display: inline-block; color: var(--gold); margin-bottom: 22px; font-size: .875rem; }
h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.service p { margin-top: 18px; color: var(--muted); }
.detail { font-size: .875rem; color: var(--muted); }
.service .detail { margin-top: 24px; }
.work-section { background: var(--surface); }
.project { display: grid; gap: 22px; padding-block: 32px; border-top: 1px solid var(--line); }
.project-category { font-size: .875rem; margin-bottom: 12px; }
.project h3 { font-size: 1.7rem; max-width: 350px; }
.project h3 a { text-decoration-thickness: 1px; }
.project p { max-width: 580px; }
.project .detail { margin-top: 16px; }
.process-grid { display: grid; gap: 32px; }
.process-grid article { border-top: 1px solid var(--line); padding-top: 24px; }
.process-grid h3 { font-size: 1.25rem; }
.process-grid p { color: var(--muted); margin-top: 16px; }
.babilon { background: var(--surface); border-left: 3px solid var(--gold); padding: 28px 24px; margin-top: 56px; display: grid; gap: 24px; }
.babilon h3 { font-size: 1.75rem; }
.babilon .eyebrow { margin-bottom: 16px; }
.babilon p:not(.eyebrow) { color: var(--muted); }
.babilon .text-link { margin-top: 12px; }
.experience { padding-block: 12px 72px; display: grid; gap: 12px; }
.experience p:not(.eyebrow) { color: var(--muted); margin-top: 24px; max-width: 720px; }
.experience .text-link { margin-top: 16px; }
.contact-section { background: var(--gold); color: #171b12; }
.contact-section .eyebrow, .contact-section .detail { color: #3e442e; }
.contact-section h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.contact-layout { display: grid; gap: 36px; }
.contact-layout p:not(.eyebrow) { max-width: 430px; margin-top: 24px; }
.contact-details { align-self: center; }
.contact-details .button { background: #171b12; color: var(--text); border-color: #171b12; }
.contact-details .button:hover { background: #303727; }
.email { display: block; width: fit-content; font-size: clamp(1.125rem, 2vw, 1.5rem); overflow-wrap: anywhere; margin-top: 24px; }
.contact-details a:hover { color: #171b12; text-decoration-thickness: 2px; }
.contact-details .button:hover { color: #fff; }
.contact-details a:focus-visible { outline-color: #171b12; }
.contact-details .text-link { margin-top: 16px; }
.footer { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: center; padding-block: 28px; font-size: .875rem; color: var(--muted); }
.footer a { padding-block: 10px; }
@media (min-width: 700px) {
  .wrap { width: min(1200px, calc(100% - 80px)); }
  .services-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .section-heading { grid-template-columns: 1.2fr 1fr; gap: 60px; }
  .project { grid-template-columns: 1fr 1.4fr; gap: 60px; padding-block: 40px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .babilon { grid-template-columns: 1fr 1.4fr; padding: 40px; gap: 48px; }
  .contact-layout { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .footer a { margin-left: auto; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.6fr 1fr; align-items: center; gap: 64px; padding-block: 88px 72px; }
  .portrait { justify-self: end; }
  .portrait img { height: 460px; }
  .section { padding-block: 100px; }
  .section-heading { margin-bottom: 56px; }
  .experience { grid-template-columns: 1fr 2fr; gap: 64px; padding-bottom: 100px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  :root { color-scheme: light; }
  body, .work-section, .babilon, .contact-section { background: #fff; color: #111; }
  .portrait { max-width: 220px; }
  .portrait img { height: auto; }
  .section { padding-block: 24px; }
  .service, .project { break-inside: avoid; }
}
