:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --paper-deep: #ebe6da;
  --surface: #fbf9f3;
  --navy: #0c1822;
  --navy-soft: #14232e;
  --ink: #15222c;
  --soft: #4c5860;
  --muted: #6b675e;
  --line: #d9d3c5;
  --line-strong: #c8c1b1;
  --brass: #8a6a3e;
  --brass-light: #c8a97a;
  --brass-rule: #b39468;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.hero :focus-visible, .projects-section :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-light); }
::selection { background: var(--navy); color: var(--paper); }
.page-shell { width: min(1180px, calc(100% - 96px)); margin: 0 auto; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--navy); color: var(--paper); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

/* Masthead */
.site-header { background: var(--paper); border-top: 2px solid var(--brass-rule); }
.header-inner { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.monogram { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--brass-rule); color: var(--brass); font-family: var(--serif); font-size: 15px; letter-spacing: .04em; line-height: 1; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--serif); font-size: 19px; line-height: 1.1; letter-spacing: -.01em; }
.brand-caption { color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.header-nav { display: flex; gap: 34px; }
.header-nav a { position: relative; padding: 8px 0; color: var(--soft); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: color .2s ease; }
.header-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { transform: scaleX(1); }

/* Shared typography */
.kicker { margin: 0; color: var(--brass); font-size: 10px; font-weight: 600; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.kicker-index { display: inline-block; min-width: 30px; margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--line-strong); font-weight: 500; }
.kicker-light { color: var(--brass-light); }
.kicker-light .kicker-index { border-color: rgba(200, 169, 122, .35); }
.section-heading h2 { margin: 20px 0 0; font-family: var(--serif); font-size: clamp(38px, 4.2vw, 56px); font-weight: 400; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.section-note { max-width: 44ch; margin: 22px 0 0; color: var(--soft); font-size: 14px; font-weight: 300; line-height: 1.75; text-wrap: pretty; }
.section { padding: 104px 0; }

/* Hero */
.hero { background: var(--navy); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(48px, 7vw, 104px); align-items: center; padding: 96px 0 104px; }
.hero-copy { max-width: 680px; }
.hero h1 { margin: 26px 0 28px; color: var(--paper); font-family: var(--serif); font-size: clamp(64px, 7.6vw, 102px); font-weight: 400; line-height: .92; letter-spacing: -.035em; text-wrap: balance; }
.hero-lede { max-width: 44ch; margin: 0; color: rgba(245, 242, 234, .7); font-size: 16px; font-weight: 300; line-height: 1.75; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 0; cursor: pointer; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.button-solid { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.button-solid:hover { background: var(--brass-light); border-color: var(--brass-light); }
.button-ghost { background: transparent; border-color: rgba(245, 242, 234, .35); color: var(--paper); }
.button-ghost:hover { background: rgba(245, 242, 234, .06); border-color: var(--paper); }
.button-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button-outline:hover { background: var(--surface); border-color: var(--ink); }

.hero-card { position: relative; justify-self: end; width: 360px; max-width: 100%; background: var(--surface); box-shadow: 0 32px 70px rgba(0, 0, 0, .34); }
.hero-card::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(200, 169, 122, .42); pointer-events: none; }
.card-portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.card-body { padding: 26px 28px 22px; color: var(--ink); }
.card-kicker { margin: 0; color: var(--brass); font-size: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.card-name { margin: 10px 0 18px; font-family: var(--serif); font-size: 28px; line-height: 1.05; letter-spacing: -.02em; }
.card-lines { border-top: 1px solid var(--line); }
.card-line { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.card-line-label { padding-top: 1px; color: var(--brass); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.card-line a { color: var(--soft); text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease; }
.card-line a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; color: var(--muted); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.card-foot-mark { color: var(--brass); font-family: var(--serif); font-size: 12px; letter-spacing: .06em; }

/* Contact */
.section-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 104px); align-items: start; }
.detail-list { margin: 0; border-top: 1px solid var(--line-strong); }
.detail-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.detail-row dd { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; margin: 0; }
.detail-row a { min-width: 0; color: var(--ink); font-family: var(--serif); font-size: 26px; line-height: 1.2; letter-spacing: -.015em; text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease; }
.detail-row a:hover { color: var(--brass); }
.detail-arrow { flex: 0 0 auto; color: var(--brass); font-family: var(--sans); font-size: 16px; transition: transform .2s ease; }
.detail-row:hover .detail-arrow { transform: translateX(4px); }

/* Companies */
.companies-section { padding: 104px 0; background: var(--paper-deep); }
.heading-wide { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.heading-wide .section-note { max-width: 34ch; margin: 0 0 6px; }
.company-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-strong); }
.company-card { padding: 44px 56px 52px 0; }
.company-card + .company-card { padding-right: 0; padding-left: 56px; border-left: 1px solid var(--line-strong); }
.company-number { margin: 0; color: var(--brass); font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.company-name { margin: 14px 0 30px; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.company-contact { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.company-label { margin: 0; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .16em; line-height: 2.2; text-transform: uppercase; }
.company-links { display: grid; gap: 6px; }
.company-link { color: var(--soft); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease; }
.company-link:hover { color: var(--brass); }
.company-link span { color: var(--brass); font-size: 12px; }

/* Projects */
.projects-section { padding: 104px 0 112px; background: var(--navy); color: var(--paper); }
.projects-section h2 { color: var(--paper); }
.heading-on-dark .section-note { color: rgba(245, 242, 234, .6); }
.project-list { margin-top: 56px; border-bottom: 1px solid rgba(245, 242, 234, .16); }
.project-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; grid-template-areas: "index name arrow" "index domain arrow"; align-items: center; padding: 32px 0; border-top: 1px solid rgba(245, 242, 234, .16); color: var(--paper); text-decoration: none; }
.project-index { grid-area: index; align-self: start; padding-top: 14px; color: var(--brass-light); font-size: 10px; letter-spacing: .12em; }
.project-name { grid-area: name; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -.025em; transition: color .2s ease; }
.project-domain { grid-area: domain; margin-top: 10px; color: rgba(245, 242, 234, .55); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.project-arrow { grid-area: arrow; justify-self: end; color: var(--brass-light); font-size: 22px; transition: transform .25s ease; }
.project-card:hover .project-name { color: var(--brass-light); }
.project-card:hover .project-arrow { transform: translate(4px, -4px); }

/* QR */
.qr-section { padding: 104px 0; }
.qr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(48px, 7vw, 104px); align-items: center; }
.qr-column { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.qr-plate { position: relative; width: 280px; max-width: 100%; padding: 24px 24px 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(21, 34, 44, .1); }
.qr-plate::before { content: ''; position: absolute; inset: -8px; border: 1px solid rgba(179, 148, 104, .38); pointer-events: none; }
.qr-code { width: 208px; height: 208px; display: grid; place-items: center; margin: 0 auto; background: #fff; }
.qr-code canvas, .qr-code img { display: block; max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.qr-caption { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .2em; line-height: 1.6; text-align: center; text-transform: uppercase; }
.qr-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--soft); cursor: pointer; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-transform: uppercase; }
.text-button:hover { color: var(--brass); text-decoration-color: currentColor; }
.no-script-note { width: min(1180px, calc(100% - 96px)); margin: 28px auto 0; color: var(--soft); font-size: 12px; }

/* Footer and status */
.site-footer { padding: 34px 0; background: var(--navy); color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.monogram-small { flex-basis: 34px; width: 34px; height: 34px; border-color: rgba(200, 169, 122, .5); color: var(--brass-light); font-size: 12px; }
.footer-brand-text { display: flex; flex-direction: column; gap: 2px; }
.footer-name { font-family: var(--serif); font-size: 15px; line-height: 1.1; }
.footer-caption { color: rgba(245, 242, 234, .52); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.footer-copy { margin: 0; color: rgba(245, 242, 234, .55); font-size: 9px; letter-spacing: .08em; }
.back-top { color: rgba(245, 242, 234, .7); font-size: 9px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.back-top:hover { color: var(--brass-light); }
.back-top span { margin-left: 6px; color: var(--brass-light); }
.action-status { position: fixed; left: 50%; bottom: 26px; z-index: 60; max-width: calc(100% - 32px); margin: 0; padding: 13px 20px; background: var(--navy); border: 1px solid rgba(200, 169, 122, .55); color: var(--paper); box-shadow: 0 14px 40px rgba(0, 0, 0, .24); font-size: 11px; letter-spacing: .02em; text-align: center; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.action-status:not(:empty) { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .page-shell { width: calc(100% - 64px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }
  .hero-card { width: 330px; }
  .hero h1 { font-size: clamp(60px, 7.4vw, 88px); }
  .company-card { padding-right: 40px; }
  .company-card + .company-card { padding-left: 40px; }
  .no-script-note { width: calc(100% - 64px); }
}

@media (max-width: 860px) {
  .header-inner { height: 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; padding: 72px 0 88px; }
  .hero-card { justify-self: center; width: 340px; }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .section { padding: 84px 0; }
  .companies-section, .projects-section, .qr-section { padding: 84px 0; }
  .heading-wide { align-items: flex-start; }
  .heading-wide .section-note { max-width: 44ch; margin-top: 0; }
  .company-list { grid-template-columns: minmax(0, 1fr); }
  .company-card { padding: 40px 0 44px; }
  .company-card + .company-card { padding: 40px 0 44px; border-top: 1px solid var(--line-strong); border-left: 0; }
  .qr-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .qr-column { align-items: flex-start; }
  .qr-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .page-shell { width: calc(100% - 40px); }
  .header-inner { height: 76px; gap: 16px; }
  .brand { gap: 10px; }
  .monogram { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
  .brand-name { font-size: 16px; }
  .brand-caption { font-size: 7.5px; letter-spacing: .18em; }
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 9px; letter-spacing: .08em; }
  .hero-grid { gap: 56px; padding: 56px 0 68px; }
  .hero h1 { margin: 20px 0 22px; font-size: clamp(50px, 14vw, 66px); }
  .hero-lede { font-size: 14px; }
  .hero-actions { gap: 10px; margin-top: 30px; }
  .button { min-height: 48px; padding: 0 17px; font-size: 9px; letter-spacing: .1em; }
  .hero-card { justify-self: start; width: 100%; max-width: 330px; }
  .hero-card::before { inset: -10px; }
  .card-body { padding: 22px 24px 18px; }
  .card-name { font-size: 26px; }
  .section, .companies-section, .projects-section, .qr-section { padding: 72px 0; }
  .section-heading h2 { font-size: clamp(34px, 10vw, 42px); }
  .section-note { margin-top: 18px; font-size: 13px; }
  .detail-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .detail-row a { font-size: 21px; }
  .heading-wide { gap: 18px; }
  .company-list { margin-top: 40px; }
  .company-name { margin: 10px 0 24px; }
  .company-contact { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .company-label { line-height: 1.5; }
  .project-list { margin-top: 40px; }
  .project-card { grid-template-columns: 36px minmax(0, 1fr) 28px; padding: 26px 0; }
  .project-index { padding-top: 10px; }
  .project-name { font-size: clamp(28px, 8.4vw, 36px); }
  .project-domain { margin-top: 8px; font-size: 9px; letter-spacing: .1em; }
  .project-arrow { font-size: 19px; }
  .qr-column { align-items: center; }
  .qr-actions { justify-content: center; }
  .qr-plate { width: 272px; padding: 22px 22px 16px; }
  .no-script-note { width: calc(100% - 40px); }
  .footer-inner { gap: 16px 24px; }
  .footer-copy { order: 3; flex-basis: 100%; }
  .action-status { bottom: 18px; font-size: 10px; }
}

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