:root {
  color-scheme: dark;
  --ink: #11161b;
  --paper: #f3eae1;
  --gutter: clamp(28px, 6.2vw, 100px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #10151a;
  color: var(--paper);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { margin-inline: var(--gutter); }
.header {
  position: relative;
  z-index: 3;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(243,234,225,.48);
}
.wordmark { font-size: clamp(20px, 2.65vw, 30px); letter-spacing: -.045em; white-space: nowrap; }
.wordmark strong { font-weight: 700; letter-spacing: -.04em; }
nav { display: flex; align-items: center; gap: clamp(28px, 5.5vw, 70px); }
nav a { font-size: clamp(16px, 1.75vw, 20px); transition: opacity .25s ease; }
nav a:hover { opacity: .65; }
.hero { position: relative; height: clamp(620px, 84svh, 1080px); overflow: hidden; }
.hero-map {
  position: absolute;
  inset: 0;
  background: url('assets/kart.webp') right -10vw bottom / max(136%, 130svh) auto no-repeat;
  pointer-events: none;
}
@media (min-width: 1100px), (min-width: 651px) and (min-resolution: 1.5dppx) {
  .hero-map { background-image: url('assets/kart-3840.webp'); }
}
.hero-copy { position: relative; z-index: 1; padding-top: clamp(86px, 10vw, 150px); }
h1 { margin: 0; font-size: clamp(66px, 9.4vw, 144px); line-height: .86; letter-spacing: -.055em; font-weight: 400; }
.hero-copy p { margin: .8em 0 0; font-size: clamp(22px, 2.85vw, 42px); line-height: 1.17; font-style: italic; letter-spacing: -.02em; }
.companies { display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 2; margin-top: clamp(-145px, -10vw, -65px); }
.company { position: relative; min-width: 0; min-height: clamp(380px, 44vw, 570px); display: flex; align-items: flex-end; overflow: hidden; }
.company::before { content: ''; position: absolute; inset: 0; transition: transform .7s ease; }
.company:hover::before { transform: scale(1.035); }
.company-favn { color: #18191a; clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%); background: #e4d6c8; }
.company-favn::before { background: linear-gradient(115deg, transparent 5%, rgba(255,255,255,.28) 19%, transparent 27%, rgba(93,72,57,.11) 39%, transparent 47%), radial-gradient(ellipse at 80% 30%, #f6ece0 0, #dfd0c1 75%); }
.company-aprex { clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); background: #141b21; }
.company-aprex::before { background: radial-gradient(ellipse at 8% 105%, transparent 37%, rgba(174,210,224,.33) 38%, transparent 41%), linear-gradient(145deg, #46525a 0%, #1c252c 32%, #10161c 66%, #26333b 100%); }
.company-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 var(--gutter) clamp(54px, 7vw, 100px); }
.company-aprex .company-content { padding-left: clamp(50px, 12vw, 160px); }
.company-name { font-size: clamp(44px, 5.7vw, 80px); line-height: .91; letter-spacing: -.045em; }
.company-description { margin-top: .35em; font-size: clamp(19px, 2.45vw, 34px); font-style: italic; line-height: 1.15; white-space: nowrap; }
.arrow { display: block; margin-top: .45em; font-size: 42px; line-height: 1; transition: transform .25s ease; }
.company:hover .arrow { transform: translateX(9px); }
.footer { background: #10151a; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .wordmark { font-size: clamp(19px, 2.35vw, 26px); }
.footer nav { gap: clamp(20px, 3vw, 40px); }
.footer nav a { font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  :root { --gutter: 24px; }
  .header { min-height: 72px; }
  .header nav { gap: 19px; }
  .header nav a { font-size: 15px; }
  .wordmark { font-size: 20px; }
  .hero { height: 720px; }
  .hero-map { background-size: auto 82%; background-position: 91% 55px; mask-image: linear-gradient(to bottom, transparent 18%, #000 46%, #000 81%, transparent 90%); }
  .hero-copy { padding-top: 65px; }
  h1 { font-size: clamp(61px, 12vw, 82px); }
  .hero-copy p { font-size: clamp(20px, 4.4vw, 27px); }
  .companies { grid-template-columns: 1fr; margin-top: -86px; }
  .company { min-height: 315px; }
  .company-favn { clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%); }
  .company-aprex { margin-top: -1px; clip-path: none; min-height: 250px; }
  .company-content, .company-aprex .company-content { padding: 80px var(--gutter) 38px; }
  .company-aprex .company-content { padding-top: 35px; }
  .company-name { font-size: clamp(48px, 11vw, 70px); }
  .company-description { font-size: clamp(20px, 5vw, 27px); }
  .footer-inner { gap: 10px; }
  .footer nav { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.menu-action { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: clamp(16px, 1.75vw, 20px); cursor: pointer; transition: opacity .25s ease; }
.menu-action:hover { opacity: .65; }
.menu-action:focus-visible, .dialog-close:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.footer .menu-action { font-size: 16px; }
.about-dialog { width: min(570px, calc(100% - 36px)); max-height: calc(100% - 36px); border: 1px solid rgba(243,234,225,.4); padding: 0; background: #151b20; color: var(--paper); }
.about-dialog::backdrop { background: rgba(5, 8, 10, .78); }
.dialog-inner { position: relative; padding: clamp(32px, 6vw, 64px); }
.dialog-close { position: absolute; top: 15px; right: 20px; border: 0; padding: 0; background: none; color: inherit; font: 32px/1 Georgia, serif; cursor: pointer; }
.dialog-eyebrow { font-size: 15px !important; letter-spacing: .04em; }
.dialog-inner h2 { margin: .6em 0 .5em; font-size: clamp(40px, 6vw, 60px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.dialog-inner p { font-size: 20px; line-height: 1.45; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 28px; }
.dialog-links a { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (max-width: 650px) { .header .menu-action { font-size: 15px; } }
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .header .wordmark { font-size: 17px; }
  .header nav { gap: 12px; }
  .header nav a, .header .menu-action { font-size: 14px; }
}
.dialog-inner .map-credit { margin: 36px 0 0; color: #bdb4ab; font-size: 13px; line-height: 1.5; }
.map-credit a { text-decoration: underline; text-underline-offset: 3px; }

.menu-action { min-height: 44px; }
.menu-action:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.footer-inner { border-top: 1px solid rgba(243,234,225,.24); }
.contact-options { display: grid; margin-top: 26px; }
.contact-options a { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid #536069; padding: 17px 0; font-size: 22px; }
.contact-options a:hover { text-decoration: underline; }
@media (max-width: 380px) {
  .footer .wordmark { font-size: 17px; }
  .footer .menu-action { font-size: 14px; }
}
