:root {
  --amber: #d79a2b;
  --graphite: #222222;
  --muted: #6d6e71;
  --sand: #f2ede3;
  --line: #dedbd4;
  --paper: #faf9f6;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-weight: inherit; }
p { margin: 0; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: Arial, "DejaVu Sans", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.section-grid { padding-inline: clamp(24px, 4vw, 72px); }
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
}
.mark {
  display: block;
  background: url("/assets/yantar-mark-transparent.png") center / contain no-repeat;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 80px;
  padding: 0 clamp(24px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(34, 34, 34, .12);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
}
.brand-mark { width: 32px; height: 32px; }
.desktop-nav { display: flex; gap: clamp(22px, 3vw, 50px); font-size: 14px; }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--amber);
  transition: right .25s ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }

.button {
  display: inline-flex;
  width: max-content;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.button:hover, .button:focus-visible { border-color: var(--amber); background: var(--amber); color: var(--graphite); }
.button-small { min-height: 42px; padding: 0 18px; justify-self: end; gap: 0; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 122px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 6vw;
  align-items: center;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 3; max-width: 790px; }
.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(48px, 6.15vw, 96px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.055em;
}
.lead {
  max-width: 720px;
  margin: 34px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}
.scroll-link { display: flex; width: max-content; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.scroll-link span { color: var(--amber); }
.hero-symbol { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-mark {
  position: relative;
  z-index: 2;
  width: min(36vw, 500px);
  height: min(36vw, 500px);
  opacity: .92;
  animation: markIn 1s cubic-bezier(.2, .7, .2, 1) both;
}
.grid-lines, .about-grid {
  position: absolute;
  inset: -8% -30% -8% -15%;
  opacity: .5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent);
}
.symbol-index { position: absolute; right: 0; bottom: 5%; color: var(--muted); font-size: 10px; letter-spacing: .17em; }

.directions { scroll-margin-top: 80px; padding-top: clamp(90px, 9vw, 140px); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0 clamp(24px, 4vw, 72px) clamp(44px, 5vw, 72px);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.direction-card { min-width: 0; padding: clamp(38px, 4.5vw, 70px) clamp(24px, 4vw, 72px) clamp(48px, 5vw, 80px); }
.direction-card + .direction-card { border-left: 1px solid var(--line); }
.direction-card-alt { background: #fbfaf7; }
.direction-number { margin: 0 0 34px; color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.direction-card h3 {
  min-height: 2.2em;
  max-width: 650px;
  margin: 0;
  font-size: clamp(29px, 3vw, 49px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.direction-intro { max-width: 610px; min-height: 4.8em; margin: 24px 0 44px; color: var(--muted); font-size: 16px; line-height: 1.58; }
.service-details > summary { display: none; }
.service-details:not([open]) > .service-list { display: block; }
@media (min-width: 721px) {
  .service-details::details-content { content-visibility: visible; }
}
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) 1fr;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.46;
}
.service-row strong { font-size: 12px; text-transform: uppercase; letter-spacing: .045em; }
.service-row span { color: var(--muted); }

.approach {
  scroll-margin-top: 80px;
  padding: clamp(80px, 8vw, 125px) clamp(24px, 4vw, 72px) clamp(78px, 8vw, 120px);
  background: var(--graphite);
  color: var(--white);
}
.approach .eyebrow { color: var(--amber); }
.approach-head { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.approach-head h2 { max-width: 1100px; margin: 0; font-size: clamp(41px, 5vw, 76px); line-height: 1; letter-spacing: -.05em; }
.approach-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, .8fr);
  gap: clamp(18px, 2.5vw, 44px);
  align-items: center;
  margin-top: clamp(64px, 7vw, 110px);
}
.approach-steps article { min-width: 0; }
.step-index { display: block; margin-bottom: 20px; color: var(--amber); font-size: 10px; letter-spacing: .18em; }
.approach-steps h3 { margin: 0; font-size: clamp(24px, 2.8vw, 47px); line-height: 1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.approach-steps p { max-width: 390px; margin: 22px 0 0; color: #adadad; font-size: 14px; line-height: 1.56; }
.step-arrow { color: var(--amber); font-size: clamp(30px, 3.6vw, 56px); }

.about {
  scroll-margin-top: 80px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(48px, 8vw, 130px);
  padding-top: clamp(86px, 9vw, 140px);
  padding-bottom: clamp(86px, 9vw, 140px);
  background: var(--paper);
}
.about-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
.about-grid { inset: 0; background-size: 68px 68px; -webkit-mask-image: none; mask-image: none; }
.about-visual .mark { position: relative; width: min(24vw, 285px); height: min(24vw, 285px); }
.about-visual > span { position: relative; margin-top: 25px; color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.about-copy { align-self: center; }
.about-copy h2 { max-width: 900px; margin: 0; font-size: clamp(43px, 5.5vw, 82px); line-height: .98; letter-spacing: -.052em; }
.about-text { max-width: 740px; margin: 40px 0 48px; color: var(--muted); font-size: 17px; line-height: 1.62; }
.about-text p { margin: 0; }
.about-text p + p { margin-top: 18px; }
.principles { display: flex; flex-wrap: wrap; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--line); }
.principles span { padding: 18px 24px 18px 0; margin-right: 24px; color: var(--graphite); font-size: 11px; font-weight: 700; letter-spacing: .1em; }

.contacts {
  scroll-margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(330px, .62fr);
  gap: clamp(55px, 9vw, 150px);
  padding-top: clamp(82px, 8vw, 130px);
  padding-bottom: clamp(82px, 8vw, 130px);
  background: var(--sand);
}
.contact-statement h2 { max-width: 980px; margin: 0; font-size: clamp(43px, 5.6vw, 84px); line-height: 1.01; letter-spacing: -.052em; }
.contact-details { align-self: end; }
.contact-details > p { max-width: 620px; margin: 0 0 38px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact-links { display: grid; gap: 13px; margin-bottom: 36px; font-size: clamp(21px, 2.1vw, 32px); letter-spacing: -.03em; }
.contact-links a { width: max-content; max-width: 100%; border-bottom: 2px solid var(--amber); overflow-wrap: anywhere; }
.contact-links .site-link { margin-top: 8px; font-size: .72em; }
.contact-details address { max-width: 600px; color: var(--muted); font-size: 13px; font-style: normal; line-height: 1.62; }

.site-footer {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 15px; color: var(--graphite); font-weight: 700; letter-spacing: .08em; }
.footer-brand .mark { width: 34px; height: 34px; }
.privacy { max-width: 410px; justify-self: end; text-align: right; }
.privacy summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy p { line-height: 1.55; }

@keyframes markIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(14px); }
  to { opacity: .92; clip-path: inset(0); transform: none; }
}

@supports (animation-timeline: view()) {
  .direction-card, .approach-steps article, .about-copy, .contact-details {
    animation: reveal both linear;
    animation-timeline: view();
    animation-range: entry 4% cover 24%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 980px) {
  .site-header { height: 70px; grid-template-columns: 1fr auto; }
  .desktop-nav, .site-header > .button { display: none; }
  .mobile-menu { display: block; justify-self: end; }
  .mobile-menu > summary { width: 42px; height: 42px; display: grid; align-content: center; gap: 7px; cursor: pointer; }
  .mobile-menu > summary span { display: block; width: 26px; height: 2px; justify-self: end; background: var(--graphite); }
  .mobile-menu nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    padding: 26px 24px 34px;
    display: grid;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    font-size: 21px;
  }
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 80px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-symbol { position: absolute; z-index: 1; right: -90px; bottom: -100px; width: 560px; min-height: 560px; opacity: .12; }
  .hero-mark { width: 440px; height: 440px; }
  .grid-lines { inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
  .symbol-index { display: none; }
  .section-heading, .approach-head { grid-template-columns: 1fr; gap: 18px; }
  .approach-steps { grid-template-columns: 1fr; align-items: start; }
  .step-arrow { margin-left: 9px; transform: rotate(90deg); transform-origin: center; }
  .about { grid-template-columns: .75fr 1.25fr; gap: 40px; }
  .about-visual { min-height: 360px; }
  .contacts { grid-template-columns: 1fr; }
  .contact-details { max-width: 680px; }
}

@media (max-width: 720px) {
  .section-grid { padding-inline: 20px; }
  .site-header { padding-inline: 20px; }
  .brand { gap: 9px; font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; }
  .mobile-menu nav { padding-inline: 20px; }

  .hero { padding-top: 104px; padding-bottom: 58px; }
  .hero .eyebrow { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 50px); line-height: .97; letter-spacing: -.052em; }
  .lead { max-width: 560px; margin: 26px 0 27px; font-size: 16px; line-height: 1.53; }
  .scroll-link { display: none; }
  .hero-symbol { right: -125px; bottom: -115px; width: 410px; min-height: 410px; }
  .hero-mark { width: 320px; height: 320px; }
  .hero .button { min-height: 50px; gap: 34px; }

  .directions { padding: 62px 16px 66px; background: var(--paper); }
  .section-heading { padding: 0 4px 34px; }
  .section-heading h2 { font-size: clamp(36px, 10.5vw, 45px); }
  .direction-grid { grid-template-columns: 1fr; gap: 14px; border: 0; }
  .direction-card { padding: 24px 20px 0; border: 1px solid var(--line); background: var(--white); }
  .direction-card + .direction-card { border: 1px solid var(--line); }
  .direction-card-alt { background: #fcfbf8; }
  .direction-number { margin-bottom: 24px; }
  .direction-card h3 { min-height: 0; font-size: clamp(28px, 8.5vw, 36px); }
  .direction-intro { min-height: 0; margin: 18px 0 21px; font-size: 15px; line-height: 1.52; }
  .service-details > summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .service-details:not([open]) > .service-list { display: none; }
  .service-details[open] > .service-list { display: block; }
  .details-icon { color: var(--amber); font-size: 24px; font-weight: 400; transition: transform .2s ease; }
  .service-details[open] .details-icon { transform: rotate(45deg); }
  .service-list { border-top: 0; padding-bottom: 10px; }
  .service-row { grid-template-columns: 1fr; gap: 6px; padding: 15px 0; font-size: 13px; }

  .approach { padding: 62px 20px 66px; }
  .approach-head h2 { font-size: clamp(34px, 9.3vw, 42px); }
  .approach-steps { margin-top: 44px; gap: 12px; }
  .approach-steps article { padding: 18px 0 20px; border-top: 1px solid #424242; }
  .step-index { margin-bottom: 14px; }
  .approach-steps h3 { font-size: clamp(25px, 7.4vw, 31px); }
  .approach-steps p { margin-top: 13px; font-size: 13px; }
  .step-arrow { margin: -5px 0 -3px 5px; font-size: 28px; }

  .about { grid-template-columns: 1fr; gap: 31px; padding-top: 62px; padding-bottom: 68px; }
  .about-visual { min-height: 142px; flex-direction: row; gap: 23px; justify-content: center; }
  .about-grid { background-size: 48px 48px; }
  .about-visual .mark { width: 98px; height: 98px; }
  .about-visual > span { margin: 0; font-size: 9px; }
  .about-copy h2 { font-size: clamp(37px, 10.6vw, 46px); }
  .about-text { margin: 28px 0 32px; font-size: 15px; line-height: 1.58; }
  .about-text p + p { margin-top: 15px; }
  .principles { display: grid; }
  .principles span { min-height: 43px; padding: 0; margin: 0; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 10px; }
  .principles span:last-child { border-bottom: 0; }

  .contacts { gap: 39px; padding-top: 62px; padding-bottom: 68px; }
  .contact-statement h2 { font-size: clamp(37px, 10.5vw, 47px); }
  .contact-details > p { margin-bottom: 31px; font-size: 15px; line-height: 1.56; }
  .contact-links { gap: 12px; margin-bottom: 31px; font-size: clamp(21px, 6.6vw, 27px); }
  .contact-details address { font-size: 12px; }

  .site-footer { min-height: 0; padding-top: 34px; padding-bottom: 36px; grid-template-columns: 1fr; gap: 21px; }
  .privacy { justify-self: start; text-align: left; }
  .privacy p { margin-bottom: 0; }
}

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