/* AMO Research and Development: site styles. Colours and type are set as tokens in :root below. */
:root {
  /* Layout: left-aligned editorial grid. One statement beside one generated figure (a single
     origin fanning into many paths) opens the page; every section after it holds its heading
     left and its content right, in ink on a cool ground. The figure is the only loud element. */
  --ground: #F3F2F7;
  --tint: #E9E7F1;
  --ink: #15132D;
  --ink-soft: #4F4D68;
  --rule: rgba(21, 19, 45, 0.16);
  --accent: #C4174F;
  --on-accent: #FFFFFF;
  --path-1: #C4174F;
  --path-2: #1F55E0;
  --path-3: #B56A00;
  --band: #15132D;
  --band-ink: #F3F2F7;
  --band-soft: #B9B7CE;
  --band-rule: rgba(243, 242, 247, 0.22);
  --band-accent: #FF7FA8;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.3125rem;
  --t-xl: clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F0E1B;
    --tint: #181729;
    --ink: #EDECF6;
    --ink-soft: #A7A5C0;
    --rule: rgba(237, 236, 246, 0.18);
    --accent: #FF6D9D;
    --on-accent: #1A0710;
    --path-1: #FF6D9D;
    --path-2: #7FA6FF;
    --path-3: #FFC04D;
    --band: #201F3A;
    --band-ink: #EDECF6;
    --band-soft: #B0AECB;
    --band-rule: rgba(237, 236, 246, 0.2);
    --band-accent: #FF7FA8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0F0E1B;
  --tint: #181729;
  --ink: #EDECF6;
  --ink-soft: #A7A5C0;
  --rule: rgba(237, 236, 246, 0.18);
  --accent: #FF6D9D;
  --on-accent: #1A0710;
  --path-1: #FF6D9D;
  --path-2: #7FA6FF;
  --path-3: #FFC04D;
  --band: #201F3A;
  --band-ink: #EDECF6;
  --band-soft: #B0AECB;
  --band-rule: rgba(237, 236, 246, 0.2);
  --band-accent: #FF7FA8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.ext, .arrow { width: 0.62em; height: 0.62em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow { width: 0.9em; height: 0.62em; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  padding: 0.6rem 0.9rem; background: var(--ink); color: var(--ground);
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm); text-decoration: none; border-radius: 2px;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 0.75rem; min-height: 4rem; }
@media (max-width: 21.24rem) { .site-head .brand__mark { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; min-width: 0; padding-block: 0.5rem; }
.brand__mark { width: 1.875rem; height: 1.375rem; flex: none; }
.mark__line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.mark__line--hl { stroke: var(--accent); }
.mark__dot { fill: var(--ink); }
.mark__dot--hl { fill: var(--accent); }
.brand__name { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 1.3125rem; line-height: 1; letter-spacing: 0.01em; }
.brand__desc {
  display: none; padding-left: 0.75rem; border-left: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--t-xs); line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 0.625rem; min-width: 0; font-family: var(--display); font-weight: 520; font-size: 0.8125rem; }
.nav a { padding-block: 0.75rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (min-width: 30rem) {
  .nav { gap: 1.125rem; font-size: var(--t-sm); }
  .nav .nav__cta { padding: 0.375rem 0.75rem; border: 1px solid var(--ink); border-radius: 2px; transition: background-color 0.15s, color 0.15s; }
  .nav .nav__cta:hover { background: var(--ink); color: var(--ground); text-decoration: none; }
}
@media (min-width: 48rem) {
  .brand__desc { display: block; }
  .nav { gap: 1.75rem; font-size: 0.9375rem; }
  .nav .nav__cta { padding: 0.45rem 1rem; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.hero__text { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; min-width: 0; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-stretch: 108%;
  font-size: clamp(2rem, 9.6vw, 3rem);
  line-height: 0.97; letter-spacing: -0.03em;
}
.hero h1 span { display: block; }
.lede { font-size: var(--t-md); line-height: 1.5; max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.btn {
  display: inline-flex; align-items: center; padding: 0.95rem 1.4rem;
  background: var(--ink); color: var(--ground); border: 1px solid var(--ink); border-radius: 2px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em;
}
.more:hover { color: var(--accent); }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
}
@supports (font-size: 1cqi) {
  /* The first headline line measures 8.53em, so 11.4cqi sets it to the full column at any width. */
  .hero h1 { font-size: clamp(1.75rem, 11.4cqi, 4.75rem); }
}

/* Generated figure */
.fan { display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }
.fan__plot { position: relative; flex: 1 1 auto; min-height: clamp(16rem, 42vw, 24rem); }
@media (min-width: 56rem) { .fan__plot { min-height: clamp(18rem, 30vw, 26rem); } }
.fan__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.fan__line, .fan__hl, .fan__origin, .fan__halo, .fan__end, .fan__core, .fan__run { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fan__line { stroke: var(--ink); stroke-opacity: 0.28; stroke-width: 1px; }
.fan__hl { stroke-width: 2px; }
.fan__origin { stroke: var(--ink); stroke-width: 12px; }
.fan__halo { stroke: var(--ground); stroke-width: 15px; }
.fan__end { stroke-width: 11px; }
.fan__core { stroke: var(--ground); stroke-width: 5px; }
.fan__run { stroke-width: 8px; }
.fan__hl--1, .fan__end--1, .fan__run--1 { stroke: var(--path-1); }
.fan__hl--2, .fan__end--2, .fan__run--2 { stroke: var(--path-2); }
.fan__hl--3, .fan__end--3, .fan__run--3 { stroke: var(--path-3); }
.fan figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.25rem;
  font-family: var(--mono); font-size: var(--t-xs); line-height: 1.55; color: var(--ink-soft);
}
.fan figcaption > span { flex: 1 1 16rem; min-width: 0; }
.fan__redo {
  flex: none; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
.fan__redo:hover { color: var(--accent); }

/* Expertise strip */
.strip { border-block: 1px solid var(--rule); }
.strip__row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding-block: 1.25rem;
  font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase;
}
.strip__label { color: var(--ink-soft); }
.strip__list { display: flex; flex-wrap: wrap; gap: 0.375rem 1.75rem; }

/* Sections */
.sec { padding-block: var(--section); scroll-margin-top: 4rem; }
.sec--tint { background: var(--tint); }
.sec__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.sec__head { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sec__body { min-width: 0; }
.label { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.sec h2 {
  font-family: var(--display); font-weight: 680; font-stretch: 106%;
  font-size: var(--t-xl); line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance;
}
.intro { max-width: 31em; color: var(--ink-soft); }
.sec h3 { font-family: var(--display); font-weight: 650; font-stretch: 104%; font-size: var(--t-lg); line-height: 1.15; letter-spacing: -0.012em; }
@media (min-width: 56rem) {
  .sec__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 2.5rem); row-gap: 3.5rem; }
  .sec__head { grid-column: 1 / span 7; }
  .sec__head--side { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6rem); }
  .sec__head--half { grid-column: 1 / span 6; }
  .sec__body { grid-column: 5 / -1; }
  .steps, .people { grid-column: 1 / -1; }
  .routes { grid-column: 8 / -1; }
}

/* Focus */
.focus__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.focus__item:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) {
  .focus__item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-block: 1.75rem; }
}

/* Approach */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.625rem; padding-top: 1rem; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.08em; color: var(--ink-soft); }
@media (min-width: 36rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Team */
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem clamp(1.5rem, 5vw, 4.5rem); }
/* Phone: the photo sits beside the name and the bio runs full width. Wider: the photo holds the left column. */
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1.5rem; align-items: start; }
.person__photo {
  grid-column: 1; grid-row: 1;
  display: block; width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: 2px; background: var(--tint);
}
.person__body { display: contents; }
.person__name { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.person__bio, .person__links { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 30rem) {
  .person { row-gap: 0.625rem; }
  .person__photo { grid-row: 1 / span 3; }
  .person__name { align-self: start; }
  .person__bio, .person__links { grid-column: 2; }
}
.sec .person h3 { font-size: 1.4375rem; line-height: 1.1; }
.person__role { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }
.person__bio a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.person__bio a:hover { color: var(--accent); }
.person__links { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; font-family: var(--mono); font-size: var(--t-sm); line-height: 1.5; }
.person__links a, .routes a, .foot__nav a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.3em; }
.person__links a:hover, .foot__nav a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (min-width: 52rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contact band */
.band { background: var(--band); color: var(--band-ink); }
.band .label, .band .intro { color: var(--band-soft); }
.band :focus-visible { outline-color: var(--band-accent); }
.routes { display: flex; flex-direction: column; min-width: 0; }
.routes li { display: flex; flex-direction: column; gap: 0.375rem; padding-block: 1.25rem; border-top: 1px solid var(--band-rule); }
.routes li:last-child { border-bottom: 1px solid var(--band-rule); }
.routes__topic { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-soft); }
.routes__who { font-family: var(--display); font-weight: 650; font-stretch: 104%; font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.012em; }
.routes__links { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; padding-top: 0.125rem; }
.routes a { align-self: flex-start; font-family: var(--mono); font-size: var(--t-sm); line-height: 1.5; text-decoration-color: var(--band-accent); text-decoration-thickness: 2px; }
.routes a:hover { color: var(--band-accent); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 0.25rem; }
.email__link {
  min-width: 0; overflow-wrap: anywhere;
  font-family: var(--display); font-weight: 650; font-stretch: 104%;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-color: var(--band-accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em;
}
.email__link:hover { color: var(--band-accent); }
.email__copy {
  flex: none; padding: 0.5rem 0.8rem; border: 1px solid var(--band-rule); border-radius: 2px; background: none; color: var(--band-ink); cursor: pointer;
  font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}
.email__copy:hover, .email__copy[data-done] { border-color: var(--band-accent); color: var(--band-accent); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Footer */
.foot { padding-block: 2.5rem 3rem; font-size: var(--t-sm); color: var(--ink-soft); }
.foot__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.75rem 2.5rem; }
.foot__about { display: flex; flex-direction: column; gap: 0.75rem; flex: 1 1 18rem; min-width: 0; max-width: 26rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--mono); line-height: 1.5; color: var(--ink); }
.foot__email { align-self: flex-start; font-family: var(--mono); line-height: 1.5; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.3em; }
.foot__email:hover { color: var(--accent); text-decoration-color: var(--accent); }
.foot__legal { flex: 1 1 100%; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
img { max-width: 100%; }
