@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/instrument.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #163b3d;
  --paper: #f3f1e7;
  --citron: #d8ed87;
  --glass: #a7d8cd;
  --line: rgb(243 241 231 / 23%);
  --secondary: #c1cfca;
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-synthesis: none;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
::selection { background: var(--citron); color: var(--ink); }
.wrap { width: min(1440px, calc(100% - 96px)); margin-inline: auto; }
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 198px; height: auto; }
.domain { color: var(--secondary); font-size: 14px; }

.main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 70px; align-items: center; padding-block: clamp(64px, 9vh, 110px); }
.main:focus { outline: none; }
.message { min-width: 0; }
.eyebrow { margin: 0 0 30px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.5; }
.status-mark { width: 8px; height: 8px; background: var(--citron); flex: 0 0 8px; }
h1 { font-size: clamp(76px, 9.5vw, 146px); font-weight: 680; letter-spacing: -.055em; line-height: .98; margin: 0 0 29px -.045em; }
h1 span { display: block; color: var(--citron); }
.intro { max-width: 405px; margin: 0; color: var(--secondary); font-size: 18px; line-height: 1.55; letter-spacing: -.01em; text-wrap: pretty; }
.support { margin-top: 44px; max-width: 405px; }
.support p { font-size: 14px; color: var(--secondary); line-height: 1.5; margin: 0 0 13px; }
.email { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; padding: 0 0 12px; border-bottom: 1px solid var(--glass); color: var(--paper); text-decoration: none; font-size: clamp(21px, 2vw, 28px); font-weight: 500; letter-spacing: -.025em; transition: color 180ms ease, border-color 180ms ease; }
.email svg { display: block; width: 28px; height: 28px; flex: 0 0 28px; transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.email:hover { color: var(--citron); border-color: var(--citron); }
.email:hover svg { transform: translateX(4px); }
.email:focus-visible { outline: 2px solid var(--citron); outline-offset: 7px; }

.art { width: 100%; max-width: 455px; justify-self: end; padding: 8px; }
.bridge { display: block; width: 100%; height: auto; overflow: visible; color: var(--glass); }
/* Each module remains rigid: the frame turns clockwise while its pieces
   open, turn clockwise, then reconnect. The 24-second loop is seamless. */
.piece { transform-box: view-box; transform-origin: 50% 50%; }
.piece path { transform-box: fill-box; transform-origin: center; }
.piece--north { color: var(--citron); --x: 0px; --y: -2.4px; }
.piece--east { --x: 2.4px; --y: 0px; }
.piece--south { --x: 0px; --y: 2.4px; }
.piece--west { --x: -2.4px; --y: 0px; }
@media (prefers-reduced-motion: no-preference) {
  .bridge { animation: clockwise-orbit 24s linear infinite; transform-origin: center; }
  .piece { animation: bridge-open 12s cubic-bezier(.45,0,.55,1) infinite; }
  .piece path { animation: clockwise-turn 12s cubic-bezier(.45,0,.55,1) infinite; }
}
@keyframes clockwise-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bridge-open {
  0%, 100% { transform: translate(0, 0); }
  25%, 75% { transform: translate(var(--x), var(--y)); }
}
@keyframes clockwise-turn {
  0%, 25% { transform: rotate(0deg); }
  75%, 100% { transform: rotate(360deg); }
}

.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; line-height: 1.5; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 14px 20px; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--citron); outline-offset: 3px; }

@media (min-width: 1600px) { .main { gap: 120px; } .art { max-width: 485px; } }
@media (min-width: 761px) and (max-height: 800px) {
  .header { min-height: 90px; }
  .main { padding-block: 40px; }
  h1 { font-size: clamp(70px, 8.5vw, 122px); }
  .eyebrow { margin-bottom: 24px; }
  .support { margin-top: 30px; }
  .footer { min-height: 68px; }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .main { gap: 32px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  h1 { font-size: clamp(70px, 10vw, 106px); }
  .intro { font-size: 17px; }
  .art { padding: 4px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 82px; gap: 16px; }
  .brand { width: 163px; }
  .domain { font-size: 12px; }
  .main { grid-template-columns: 1fr; gap: 46px; padding-block: 44px 40px; }
  .eyebrow { font-size: 12px; margin-bottom: 24px; gap: 10px; }
  h1 { font-size: clamp(65px, 17.4vw, 126px); margin-bottom: 22px; }
  .intro { max-width: 390px; font-size: 16px; }
  .support { margin-top: 29px; max-width: 390px; }
  .support p { font-size: 13px; margin-bottom: 8px; }
  .email { font-size: 23px; min-height: 54px; padding-bottom: 10px; }
  .email svg { width: 24px; height: 24px; flex-basis: 24px; }
  .art { width: min(50vw, 250px); justify-self: center; padding: 0; }
  .footer { min-height: 70px; gap: 12px; font-size: 11px; }
}
@media (max-width: 370px) {
  .brand { width: 148px; }
  h1 { font-size: 17.4vw; }
  .email { font-size: 21px; gap: 12px; }
  .main { gap: 32px; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .main { padding-block: 32px 28px; gap: 24px; }
  .art { width: min(42vw, 190px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
