@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/jost-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  :root {
    --bg:          #F7F6F1;
    --bg-panel:    #FBFAF6;
    --navy:        #16335E;
    --navy-deep:   #102746;
    --muted:       #5A6B82;
    --muted-soft:  #8694A6;
    --hairline:    rgba(22, 51, 94, 0.18);
    --hairline-soft: rgba(22, 51, 94, 0.10);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html, body {
    width: 100%;
    min-height: 100%;
    background: var(--bg);
    color: var(--navy);
    font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 4vh, 48px) clamp(12px, 4vw, 48px);
    overflow: hidden;
    position: relative;
  }

  .bg-glow, .bg-glow-2 { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
  .bg-glow  { width: 50vw; height: 50vw; top: -12%; right: -10%;
    background: radial-gradient(circle, rgba(22,51,94,0.05) 0%, rgba(247,246,241,0) 70%); }
  .bg-glow-2 { width: 42vw; height: 42vw; bottom: -12%; left: -10%;
    background: radial-gradient(circle, rgba(22,51,94,0.035) 0%, rgba(247,246,241,0) 70%); }

  .main-container {
    position: relative;
    z-index: 1;
    width: min(94vw, calc(50vw + 570px));
    height: min(880px, 90vh);
    background: var(--bg-panel);
    border: 1px solid var(--hairline-soft);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(22,51,94,0.08), 0 2px 6px rgba(22,51,94,0.03);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    min-height: 0;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--navy);
  }

  header { padding: clamp(26px,4vh,40px) clamp(28px,5vw,60px) 0; }

  .header-row {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
  }

  .brandmark { display: flex; align-items: center; }

  nav.primary { display: flex; gap: clamp(20px, 3vw, 40px); }

  nav.primary a {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
  }
  nav.primary a:hover { color: var(--navy); }
  nav.primary a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

  .rule-split { height: 1px; background: var(--hairline); }

  main { overflow-y: auto; overflow-x: hidden; min-height: 0;
    padding: clamp(28px, 5vh, 56px) clamp(28px,5vw,60px); }
  main::-webkit-scrollbar { width: 6px; }
  main::-webkit-scrollbar-track { background: transparent; }
  main::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 10px; }
  main::-webkit-scrollbar-thumb:hover { background: var(--navy); }

  .view { display: flex; flex-direction: column; min-height: 100%; animation: fade 0.5s ease both; }
  .view.is-hidden { display: none; }
  #view-home { justify-content: center; }

  @keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 52px);
    flex-wrap: wrap;
  }

  .beacon-arc { width: clamp(150px, 22vw, 250px); height: auto; overflow: visible; }
  .beacon-arc .bk-arc, .beacon-arc .bk-tail, .beacon-arc .bk-node { fill: var(--navy); transform-box: fill-box; }
  .beacon-arc .bk-arc  { transform-origin: 0% 100%; animation: bk-arc-in  1.1s cubic-bezier(.16,.84,.34,1) 0.2s both; }
  .beacon-arc .bk-tail { transform-origin: 100% 0;  animation: bk-tail-in 0.8s cubic-bezier(.16,.84,.34,1) 0.5s both; }
  .beacon-arc .bk-node { transform-origin: center;  animation: bk-node-in 0.5s cubic-bezier(.2,1.5,.5,1) 0.05s both; }
  @keyframes bk-arc-in  { from { opacity: 0; transform: scale(0.05); } to { opacity: 1; transform: scale(1); } }
  @keyframes bk-tail-in { from { opacity: 0; transform: scale(0); }    to { opacity: 1; transform: scale(1); } }
  @keyframes bk-node-in { from { opacity: 0; transform: scale(0.3); }  to { opacity: 1; transform: scale(1); } }

  .wordmark { display: flex; flex-direction: column; align-items: flex-start; }
  .wordmark .name {
    font-weight: 300;
    font-size: clamp(2.6rem, 8.5vw, 6.2rem);
    letter-spacing: 0.28em;
    line-height: 0.95;
    color: var(--navy);
    text-indent: 0.28em;
  }
  .wordmark .sub {
    font-weight: 400;
    font-size: clamp(0.8rem, 2.1vw, 1.5rem);
    letter-spacing: 0.46em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: clamp(8px, 1.4vw, 16px);
    text-indent: 0.46em;
    align-self: stretch;
    text-align: center;
  }

  .home-intro {
    max-width: 620px;
    margin: clamp(40px, 6vh, 72px) auto 0;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
    color: var(--muted);
  }

  .page-head { margin-bottom: clamp(40px, 6vh, 64px); }
  .page-head .eyebrow { display: block; margin-bottom: 20px; color: var(--muted); }
  .page-head h1 {
    font-weight: 300;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    letter-spacing: 0.01em;
    line-height: 1.08;
    color: var(--navy);
  }
  .page-head h1 em { font-style: normal; font-weight: 600; color: var(--muted); }
  .page-head .lede {
    max-width: 600px;
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
  }

  .columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }
  .column { padding-top: 28px; border-top: 1px solid var(--hairline); }
  .column .glyph { height: 44px; display: flex; align-items: center; margin-bottom: 26px; }
  .column svg { stroke: var(--navy); }
  .column h3 {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 16px;
  }
  .column p { font-size: 0.95rem; line-height: 1.72; color: var(--muted); }

  #view-approach { justify-content: flex-start; }
  #view-approach .page-head { text-align: left; margin-bottom: clamp(34px, 5vh, 52px); }
  #view-approach .page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
  #view-approach .columns { gap: clamp(36px, 5vw, 68px); flex: 1 1 auto; align-content: safe center; padding-bottom: clamp(56px, 15vh, 170px); }
  #view-approach .column { padding-top: 0; border-top: none; text-align: center; }
  #view-approach .column .glyph { justify-content: center; margin-bottom: 20px; }
  #view-approach .column .glyph svg { transition: transform 0.4s cubic-bezier(.16,.84,.34,1); }
  #view-approach .column:hover .glyph svg { transform: translateY(-5px); }
  #view-approach .column h3 { margin-bottom: 12px; }

  #view-projects .page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }

  #view-contact .page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }

  .proj-list { border-top: 1px solid var(--hairline); }
  .proj-row {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    gap: 28px;
    align-items: baseline;
    padding: 24px 8px;
    border-bottom: 1px solid var(--hairline-soft);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.3s ease, background 0.3s ease;
  }
  a.proj-row:hover { padding-left: 14px; background: var(--bg-panel); }
  .proj-row h3 {
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--navy);
  }
  .proj-row p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); max-width: 500px; }
  .proj-row .arrow {
    font-size: 1.05rem;
    color: var(--muted-soft);
    align-self: center;
    transition: color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
  }
  a.proj-row:hover .arrow { color: var(--navy); transform: translateX(4px); }

  .form-wrap { max-width: 760px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .field-row { grid-column: 1 / -1; }

  .field {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .field::placeholder { color: var(--muted-soft); }
  .field:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,51,94,0.07); }

  select.field {
    appearance: none; -webkit-appearance: none;
    color: var(--muted);
    background-image:
      linear-gradient(45deg, transparent 50%, var(--muted) 50%),
      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
  }
  select.field:focus { color: var(--navy); }
  textarea.field { resize: vertical; min-height: 150px; }

  .submit {
    margin-top: 26px;
    border: none;
    background: var(--navy);
    color: #FBFAF6;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 48px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
  }
  .submit:hover { background: var(--navy-deep); transform: translateY(-1px); }
  .submit:active { transform: translateY(0); }

  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px clamp(28px,5vw,60px);
    border-top: 1px solid var(--hairline-soft);
  }
  footer .copyright { color: var(--muted-soft); font-size: 0.66rem; letter-spacing: 0.22em; }

  @media (max-width: 860px) {
    .columns { grid-template-columns: 1fr; gap: 0; }
    .column { margin-top: 24px; }
    .columns .column:first-child { margin-top: 0; }
    .proj-row { grid-template-columns: 1fr; gap: 8px; }
    .proj-row .arrow { display: none; }
    .form-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 620px) {
    footer { flex-direction: column; align-items: flex-start; gap: 14px; }
    nav.primary { gap: 16px; flex-wrap: wrap; }
    .wordmark .name { letter-spacing: 0.18em; text-indent: 0.18em; }
  }
