/* Uskway Labs — institutional site */
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Newsreader-400-Italic.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-500.woff2") format("woff2");
}

:root {
  --ink: #0a1628;
  --ink-soft: #1a2c44;
  --paper: #f3f0e8;
  --paper-deep: #e7e1d4;
  --cream: #faf8f3;
  --muted: #4a504c;
  --line: rgba(10, 22, 40, 0.10);
  --line-strong: rgba(10, 22, 40, 0.18);
  --gold: #c4a36a;
  --gold-deep: #9a7a3e;
  --on-dark: #f3f0e8;
  --on-dark-muted: rgba(243, 240, 232, 0.64);
  --header-h: 5.25rem;
  --header-h-compact: 3.75rem;
  --measure: 38rem;
  --page: 76rem;
  --gutter: 3.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-compact); }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.skip {
  position: absolute;
  left: 1rem; top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Type */
.serif, h1, h2, h3, .display, .brand-name {
  font-family: Newsreader, "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.08;
}
.kicker {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 1.25rem 0 0;
}
.muted { color: var(--muted); }
.wrap {
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 240, 232, 0.86);
  backdrop-filter: saturate(1.15) blur(16px);
  -webkit-backdrop-filter: saturate(1.15) blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    height 0.45s var(--ease),
    background 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.site-header.is-compact {
  height: var(--header-h-compact);
  border-bottom-color: var(--line);
  background: rgba(243, 240, 232, 0.94);
}
.site-header.is-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-hero.is-compact {
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: saturate(1.1) blur(16px);
  -webkit-backdrop-filter: saturate(1.1) blur(16px);
  border-bottom-color: rgba(243, 240, 232, 0.08);
}
html.shot .site-header { position: absolute; }
.header-inner, .footer-inner {
  width: 100%;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Wordmark — concept 3 */
.wordmark { display: flex; align-items: center; min-width: 0; position: relative; z-index: 60; }
.wordmark-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: transform 0.45s var(--ease);
}
.site-header.is-compact .wordmark-lockup { transform: scale(0.92); transform-origin: left center; }
.wordmark-uskway {
  font-family: Newsreader, "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding-left: 0.16em;
}
.wordmark-bar {
  display: block;
  width: 1.35rem;
  height: 1px;
  margin: 0.28rem 0 0.26rem;
  background: var(--gold-deep);
}
.wordmark-labs {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.42em;
}
.site-header.is-hero .wordmark-uskway,
.site-header.is-hero .wordmark-labs { color: var(--on-dark); }
.site-header.is-hero .wordmark-bar { background: var(--gold); }

.nav { display: flex; align-items: center; gap: 2.15rem; margin-left: auto; }
.nav a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 0.4rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.site-header.is-hero .nav a { color: var(--on-dark-muted); }
.site-header.is-hero .nav a[aria-current="page"] { color: var(--on-dark); }
.site-header.is-hero .nav a::after { background: var(--gold); }

.menu-toggle { display: none; width: 2.5rem; height: 2.5rem; position: relative; z-index: 60; }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0.55rem;
  width: 1.35rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { content: ""; top: -6px; }
.menu-toggle span::after { content: ""; top: 6px; }
.site-header.is-hero .menu-toggle { color: var(--on-dark); }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
body.nav-open .site-header,
body.nav-open .site-header.is-hero {
  background: var(--cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.nav-open .site-header .wordmark-uskway,
body.nav-open .site-header .wordmark-labs,
body.nav-open .menu-toggle { color: var(--ink); }
body.nav-open .site-header .wordmark-bar { background: var(--gold-deep); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  background: #0a1628;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 0;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}
.hero .kicker { color: var(--gold); margin-bottom: 1.35rem; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8.6vw, 7.15rem);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 0.94;
  max-width: 14ch;
}
.hero .tagline {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 24rem;
  color: var(--on-dark-muted);
  margin: 1.75rem 0 0;
}
.hero-actions {
  display: flex;
  gap: 2.25rem;
  margin-top: 3.25rem;
  align-items: center;
}
.hero-rail {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0 2rem;
  border-top: 1px solid rgba(243, 240, 232, 0.14);
}
.hero .place {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 240, 232, 0.72);
}
.scroll-cue {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 240, 232, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 1.35rem;
  background: var(--gold);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.link::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold-deep);
  transition: width 0.4s var(--ease);
}
.link:hover::after { width: 2.5rem; }
.hero .link { color: var(--on-dark); }
.hero .link::after { background: var(--gold); }

/* Sections */
.section { padding: 8.5rem 0; }
.section-head {
  max-width: 36rem;
  margin: 0 0 4.5rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  letter-spacing: -0.032em;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0 0 4.5rem; }

.intro-band {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) 1.2fr;
  gap: 5rem;
  align-items: start;
}
.intro-grid h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
}
.intro-grid p { margin: 0 0 1.25rem; max-width: var(--measure); }

/* Portfolio rows */
.brand-list {
  border-top: 1px solid var(--line);
}
.brand-row {
  display: grid;
  grid-template-columns: 2.85rem 15.5rem minmax(12rem, 1fr) 12rem;
  column-gap: 1.75rem;
  row-gap: 0.35rem;
  align-items: center;
  padding: 1.85rem 0.4rem 1.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: inherit;
}
.brand-row::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease);
}
.brand-row:hover,
.brand-row:focus-visible {
  background: linear-gradient(90deg, rgba(196, 163, 106, 0.06), transparent 42%);
}
.brand-row:hover::before,
.brand-row:focus-visible::before { transform: scaleY(1); }
.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.62rem;
  overflow: hidden;
  background: var(--cream);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.brand-mark.is-circle {
  border-radius: 50%;
  background: transparent;
  border-color: rgba(10, 22, 40, 0.08);
}
.brand-mark img, .brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-row .brand-name {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}
.brand-row p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 32rem;
}
.brand-row .card-meta {
  justify-self: end;
  white-space: nowrap;
}
.soon {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 6rem) 0 3.5rem;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  letter-spacing: -0.036em;
  max-width: 14ch;
}
.prose { max-width: 38rem; }
.wrap.prose {
  max-width: min(var(--page), calc(100% - var(--gutter) * 2));
}
.wrap.prose > p { max-width: var(--measure); }
.prose p { margin: 0 0 1.3rem; }
.prose p:last-child { margin-bottom: 0; }

.founder {
  margin-top: 5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 2rem;
  align-items: start;
}
.founder h2 { margin: 0 0 0.55rem; font-size: 2.5rem; }
.founder .role { color: var(--muted); margin: 0; }

.split-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.split article {
  padding: 4.75rem 0 5.25rem;
}
.split article:first-child { padding-right: 4.5rem; }
.split article + article {
  border-left: 1px solid var(--line);
  padding-left: 4.5rem;
}
.split h3 {
  margin: 0.75rem 0 1.25rem;
  font-size: 2.5rem;
}
.split p { margin: 0; max-width: 30rem; color: var(--muted); }

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 7rem;
}
.email {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12rem;
  display: inline-block;
}
.email:hover { color: var(--gold-deep); }
.address {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 4.25rem 0 3.4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.site-footer .wordmark-uskway,
.site-footer .wordmark-labs { color: var(--on-dark); }
.site-footer .wordmark-bar { background: var(--gold); }
.legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--on-dark-muted);
  max-width: 28rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.footer-nav a:hover { color: var(--gold); }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
}
.reveal.is-visible,
html.shot .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .nav a::after, .link::after, .brand-row::before,
  .wordmark-lockup, .site-header { transition: none; }
}

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  :root { --gutter: 1.25rem; --header-h: 4.5rem; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 7.25rem var(--gutter) 3.5rem;
    gap: 0.15rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav::after {
    content: "Uskway Labs Ltd  ·  Newport, Wales";
    margin-top: auto;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav a {
    font-family: Newsreader, Georgia, serif;
    font-size: 2.85rem;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--ink);
    font-weight: 400;
    padding: 0.35rem 0;
  }
  .nav a::after { display: none; }
  .site-header.is-hero .nav a,
  .site-header.is-hero .nav a[aria-current="page"] { color: var(--ink); }
  .intro-grid,
  .split,
  .contact-block,
  .footer-inner,
  .founder {
    grid-template-columns: 1fr;
  }
  .brand-row {
    grid-template-columns: 2.85rem 1fr auto;
    column-gap: 1.15rem;
    row-gap: 0.4rem;
    padding: 1.55rem 0;
    align-items: start;
  }
  .brand-row .brand-name { grid-column: 2; font-size: 1.65rem; padding-top: 0.2rem; }
  .brand-row .card-meta { grid-column: 3; justify-self: end; align-self: center; }
  .brand-row p { grid-column: 2; }
  .split article,
  .split article:first-child,
  .split article + article {
    padding: 3rem 0;
    border-left: 0;
  }
  .split article + article { border-top: 1px solid var(--line); }
  .footer-nav { text-align: left; }
  .hero {
    padding: calc(var(--header-h) + 0.5rem) 0 0;
  }
  .hero-inner { padding: 1.5rem 0 2.25rem; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.35rem); max-width: none; }
  .hero-rail { padding: 1.15rem 0 1.6rem; }
  .section { padding: 5rem 0; }
  .section-head { margin-bottom: 2.75rem; }
  .page-hero { padding: calc(var(--header-h) + 3.75rem) 0 2.25rem; }
  .contact-block { padding-bottom: 4.5rem; }
}

@media (max-width: 700px) {
  .brand-row {
    grid-template-columns: 2.85rem 1fr;
    gap: 0.85rem 1rem;
    padding: 1.55rem 0;
    align-items: center;
  }
  .brand-row .brand-name { grid-column: 2; font-size: 1.55rem; }
  .brand-row p,
  .brand-row .card-meta { grid-column: 1 / -1; justify-self: start; }
}

@media (min-width: 901px) {
  body.nav-open { overflow: auto; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .brand-row .brand-name { font-size: 1.65rem; }
}
