/* Self-hosted Google Fonts, latin subset (OFL). */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400.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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500.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; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400.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; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-500.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; }
@font-face { font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-serif-400-italic.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; }

/* Hillers Electrical Engineering. Concept: a drawing sheet, modernized. Logo blue and electric yellow
   on charcoal for headers, white and light grey for reading, black for the title block. Single light theme on purpose. */
:root {
  color-scheme: light;
  --logo: #037dc2;       /* sampled from the HEE logo: marks, rules, large shapes */
  --yellow: #E6F001;
  --charcoal: #36363c;
  --black: #0d0d0f;
  --white: #ffffff;
  --light-blue: #e3f2fb;
  --sky: #8fd3f4;        /* light blue for text and links on dark */
  --light-grey: #f1f2f3;
  --paper: var(--white);
  --tint: var(--light-grey);
  --ink: var(--black);
  --muted: #55555c;
  --rule: #d4d6d9;
  --blue: #03689f;       /* logo blue, one step darker so small text and links pass AA on white */
  --blue-logo: var(--logo);
  --display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, Menlo, monospace;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h3, .group h2, .person h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.15; }
[id] { scroll-margin-top: 96px; }
p { margin: 0; max-width: 65ch; }
ul { margin: 0; padding: 0; list-style: none; }

/* Dark sections re-point the tokens, so everything inside follows */
.hero, .page-head { --paper: var(--charcoal); --ink: var(--white); --muted: #d0d2d6; --rule: #63636a; --blue: var(--sky); background: var(--charcoal); color: var(--white); position: relative; }
.hero::before, .page-head::before, .hero::after, .page-head::after { content: ""; position: absolute; bottom: 0; height: 6px; width: 50%; }
.hero::before, .page-head::before { left: 0; background: var(--logo); transform-origin: left; }
.hero::after, .page-head::after { right: 0; background: var(--yellow); transform-origin: right; }
.title-block { --paper: var(--black); --ink: var(--white); --muted: #b9bbc0; --blue: var(--sky); color: var(--white); }
.page-head + .ruled { border-top: 0; }
.band { padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; top: 8px; color: #fff; }
.label { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--logo); }
.brand img { width: auto; height: 60px; }
.brand span { font: 700 1.2rem/1.15 "Times New Roman", Times, Georgia, serif; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; order: 1; }
.site-nav a { display: inline-block; padding: 6px 0; font: 500 0.97rem/1.3 var(--display); color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; transition: border-color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--ink); }
.site-nav .nav-cta { order: 2; padding: 8px 20px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white); transition: background .2s ease, color .2s ease; }
.site-nav .nav-cta[aria-current="page"] { background: var(--black); color: var(--white); border-color: var(--black); }
.site-nav .nav-cta:hover { background: var(--white); color: var(--black); border-color: var(--black); }
/* Hamburger: a <details> with no script, shown only under 900px. The menu panel drops below the header. */
.site-nav .menu { display: none; order: 3; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; color: var(--ink); background: var(--white); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: var(--blue); color: var(--blue); }
.bars { position: relative; display: block; width: 20px; height: 14px; }
.bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.bars i:nth-child(1) { top: 0; } .bars i:nth-child(2) { top: 6px; } .bars i:nth-child(3) { bottom: 0; }
.menu[open] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] .bars i:nth-child(2) { opacity: 0; }
.menu[open] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  /* One-row header on phones: the logo carries the name (the text stays for screen readers). */
  .site-head .wrap { flex-wrap: nowrap; gap: 12px; }
  .brand { gap: 10px; }
  .brand span { font-size: 0.9rem; }
  .brand img { height: 44px; }
  .site-nav { gap: 10px; }
  .site-nav .nav-cta { order: 1; padding: 6px 16px; font-size: 0.92rem; }
  .site-nav .menu { display: block; order: 2; }
  .site-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 0; padding: 6px clamp(20px, 5vw, 48px) 14px; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(13, 13, 15, 0.08); }
  .site-nav:has(.menu[open]) ul { display: block; }
  .site-nav ul li a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .site-nav ul li:last-child a { border-bottom: 0; }
  .site-nav ul li a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--blue); }
}

/* Section rhythm */
main > section { padding-block: clamp(64px, 9vw, 120px); }
main > section.quote-band { padding-block: 0; }
main > section + section .wrap { border-top: 0; }
.ruled { border-top: 1px solid var(--rule); }
.tinted { background: var(--tint); }
.tinted-blue { background: var(--light-blue); }
.stack { display: grid; gap: 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2::before, .quote-head h2::before { content: ""; display: block; width: 56px; height: 6px; margin-bottom: 20px; background: linear-gradient(90deg, var(--logo) 50%, var(--yellow) 50%); }
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.page-head h1 { max-width: 900px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); }
.more { font: 500 1rem/1.4 var(--display); white-space: nowrap; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

/* Home hero */
/* Zone ruler along the top of the hero, as on the border of a drawing sheet. Decorative. */
.zones { display: none; }
@media (min-width: 1000px) {
  .zones { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: repeat(8, 1fr); pointer-events: none; font: 400 10px/1 var(--mono); color: rgba(255, 255, 255, 0.38); }
  .zones span { height: 16px; padding: 5px 0 0 7px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
  .zones span:first-child { border-left: 0; }
}
/* The hero is sized by viewport height as well as width, so title, subtext, buttons and facts fit on one screen. */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4.5vh, 64px) clamp(28px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, min(4.6vw, 9vh), 4.1rem); max-width: 15em; }
.hero .lede { max-width: 34em; }
.hero-fig { width: min(440px, 46vh, 36vw); }
.hero .label, .page-head .label { color: var(--sky); }
.hero-text { display: grid; gap: clamp(14px, 2.6vh, 24px); min-width: 0; }
main > section.hero { padding-block: clamp(24px, 6vh, 96px) clamp(28px, 5.5vh, 72px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn { display: inline-block; padding: 14px 26px; font: 500 1.05rem/1.2 var(--display); text-decoration: none; border: 1px solid var(--blue); border-radius: 999px; transition: background .2s ease, color .2s ease; }
.btn-solid { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn-solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn-line { color: var(--white); border-color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--black); }

/* Figure plates */
figure { margin: 0; min-width: 0; }
.plate { border: 1px solid var(--rule); }
.plate img { width: 100%; }
figcaption { font: 400 0.8rem/1.45 var(--mono); color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--rule); background: var(--paper); }
.oneline { padding: 12px; }
.oneline text { font-family: var(--mono); font-size: 11px; fill: var(--ink); }
.oneline .pw { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.oneline .bus { stroke: var(--ink); stroke-width: 4; fill: none; }
.oneline .dev { stroke: var(--ink); stroke-width: 1.4; fill: var(--paper); }
.oneline .sig { stroke: var(--yellow); stroke-width: 1.4; stroke-dasharray: 5 4; fill: none; }
.oneline .inst { stroke: var(--yellow); stroke-width: 1.4; fill: var(--paper); }
.oneline .tc { text-anchor: middle; }
.oneline .blue { fill: var(--yellow); }

/* Facts table */
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); }
.facts > div { padding-top: clamp(12px, 2.2vh, 20px); border-top: 1px solid var(--rule); display: flex; flex-direction: column-reverse; justify-content: start; gap: 8px; }
.facts dt { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 500 clamp(1.5rem, min(3.4vw, 5.2vh), 2.9rem)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
dl { margin: 0; }

/* Service groups */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.group { padding-block: 20px; border-top: 3px solid var(--logo); display: grid; gap: 8px; align-content: start; min-width: 0; }
.group p { color: var(--muted); font-size: 0.98rem; }
.ticks li { padding: 6px 0; border-bottom: 1px solid var(--tint); }
.ticks li:last-child { border-bottom: 0; }

/* Photo rows */
.plates-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plates-3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }

/* Clients */
.client-short { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.client-short li { padding: 18px 0; border-top: 1px solid var(--rule); font: 500 clamp(1.1rem, 1.7vw, 1.35rem)/1.3 var(--display); letter-spacing: -0.005em; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding-block: 20px; align-items: center; border-top: 3px solid var(--logo); }
.person img { width: 120px; height: 120px; border-radius: 50%; background: var(--light-grey); }
.person-note { grid-template-columns: minmax(0, 1fr); }
.person h2 { font-size: 1.15rem; }
.person .role { color: var(--muted); font-size: 0.95rem; }
.person .lines { margin-top: 6px; font-size: 0.95rem; display: grid; gap: 2px; }
.person .lines a { overflow-wrap: anywhere; }
.names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px clamp(16px, 3vw, 32px); }
.names > li { display: grid; gap: 2px; border-top: 1px solid var(--ink); padding-top: 24px; font-size: 0.95rem; min-width: 0; }
.names img { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 14px; background: var(--light-grey); }
.names strong { font: 600 1.2rem/1.25 var(--display); }
.names span { color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Project entry */
.entry { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.entry img { border: 1px solid var(--rule); width: 100%; }
.entry dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; font-size: 0.97rem; }
.entry dt { font: 500 0.75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.entry dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Projects: utilities drawn as feeders off a bus, echoing the one-line on Home */
.feeders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: clamp(48px, 6vw, 80px); }
.feeders li { position: relative; border-top: 4px solid var(--logo); padding: 40px 20px 0 0; font: 500 1.05rem/1.3 var(--display); min-width: 0; }
.feeders li::before { content: ""; position: absolute; left: 0; top: 0; height: 12px; border-left: 1.4px solid var(--ink); }
.feeders li::after { content: ""; position: absolute; left: -6px; top: 12px; width: 13px; height: 13px; border: 1.4px solid var(--black); background: var(--yellow); }

/* Line icons */
.icon { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.arrow { width: 44px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.group .icon { width: 56px; height: 56px; color: var(--ink); margin-bottom: 4px; }
.group { scroll-margin-top: 16px; }

/* Service tiles: yellow bar and underlined title on hover */
.tiles { display: grid; border-bottom: 1px solid var(--ink); }
.tile { position: relative; border-top: 1px solid var(--ink); color: var(--ink); min-width: 0; }
.tile summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px clamp(20px, 3vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px) 0; cursor: pointer; list-style: none; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.tile .icon { width: 56px; height: 56px; }
.tile h3 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); letter-spacing: -0.02em; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tile p { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.tile .chev { justify-self: end; width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.tile[open] .chev { transform: rotate(180deg); }
.tile::after, .photo-card::after, .quick a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.tile:hover::after, .tile[open]::after, .photo-card:hover::after, .photo-card:focus-visible::after, .quick a:hover::after, .quick a:focus-visible::after { transform: scaleX(1); }
.tile summary:hover h3 { text-decoration-line: underline; }
.tile-body { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 0 clamp(20px, 3vw, 48px); padding: 0 0 clamp(26px, 3vw, 40px); }
.tile-body > * { grid-column: 2; }
.tile-body .ticks { columns: 2; column-gap: clamp(24px, 4vw, 56px); margin-bottom: 20px; }
.tile-body .ticks li { break-inside: avoid; }
@media (prefers-reduced-motion: no-preference) {
  .tile[open] .tile-body { animation: tile-open .3s ease both; }
}
@keyframes tile-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Photo cards */
.photo-card { position: relative; display: block; min-width: 0; color: var(--ink); text-decoration: none; padding-bottom: 6px; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card span { display: block; padding: 14px 0 8px; font: 600 1.15rem/1.3 var(--display); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.photo-card:hover, .photo-card:focus-visible { color: var(--ink); }
.photo-card:hover span, .photo-card:focus-visible span { text-decoration-line: underline; }

/* Featured study on Home: reads like a single blog post, same hover language as the cards */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); background: var(--white); color: var(--ink); text-decoration: none; padding: clamp(20px, 3vw, 32px); }
.feature img { width: 100%; }
.feature-body { display: grid; gap: 14px; align-content: start; justify-items: start; min-width: 0; }
.feature h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.feature dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; font-size: 0.97rem; margin: 0; }
.feature dt { font: 500 0.75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.feature dd { margin: 0; }
.feature .arrow { margin-top: 8px; }
.feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.feature:hover, .feature:focus-visible { color: var(--ink); }
.feature:hover::after, .feature:focus-visible::after { transform: scaleX(1); }
.feature:hover h3, .feature:focus-visible h3 { text-decoration-line: underline; }
.feature:hover .arrow { transform: translateX(6px); }

/* Photo zoom on hover. The wrapper clips the image so the layout never moves. */
.zoom { overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .zoom img { transition: transform .5s ease; }
  .photo-card:hover .zoom img, .photo-card:focus-visible .zoom img, .plate:hover .zoom img, .feature:hover .zoom img, .feature:focus-visible .zoom img { transform: scale(1.06); }
}

/* Quote band: white on charcoal, logo blue as accent only, split by one vertical line */
.quote-band { --ink: var(--white); --muted: #c9c9cf; --rule: rgba(255, 255, 255, 0.2); --blue: var(--sky); background: var(--charcoal); color: var(--white); border-top: 6px solid var(--logo); }
.quote-head { border-bottom: 1px solid var(--rule); }
.quote-head .wrap { padding-block: clamp(40px, 5vw, 64px) 28px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.quote-main { padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 72px) 0; border-right: 1px solid var(--rule); gap: 22px; align-content: start; }
blockquote { margin: 0; }
blockquote::before { content: "\201C"; display: block; font: 400 4.5rem/0.6 var(--serif); color: var(--logo); margin-bottom: 18px; }
blockquote p { font: italic 400 clamp(1.3rem, 2.1vw, 1.75rem)/1.45 var(--serif); max-width: 34em; text-wrap: pretty; }
.by { display: flex; align-items: center; gap: 14px; }
.by img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.by p { line-height: 1.35; color: var(--muted); }
.by strong { color: var(--white); }
.by strong { font: 600 1.05rem/1.3 var(--display); }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px); }
.quick a { position: relative; display: grid; gap: 10px; padding: 14px 8px 18px 0; color: var(--white); text-decoration: none; }
.quick span { font: 600 1.1rem/1.2 var(--display); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.quick a:hover, .quick a:focus-visible { color: var(--white); }
.quick .icon { stroke: var(--sky); }
.quick a:hover span, .quick a:focus-visible span { text-decoration-line: underline; }
.quick .icon { width: 60px; height: 60px; }

/* Hero intro. The base state is the finished page; motion only adds a one-time sequence under three seconds. The headline is visible at once. */
.rotor { display: grid; font: 500 clamp(1.1rem, 2vw, 1.35rem)/1.3 var(--display); color: var(--yellow); }
.rotor > * { grid-area: 1 / 1; margin: 0; max-width: none; }
.rotor .r-final { text-wrap: balance; }
.hero-fig { position: relative; }
.hero-photos { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photos { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: photos-out .3s linear 2.4s both; background: var(--charcoal); }
  .hero-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: flash .9s ease both; }
  .hero-photos .p1 { animation-delay: 0s; }
  .hero-photos .p2 { animation-delay: .8s; }
  .hero-photos .p3 { animation-delay: 1.6s; }
  .hero h1, .hero .lede, .hero .actions, .r-final { animation: rise .5s ease both; }
  .r-final { animation-delay: .05s; }
  .hero .lede { animation-delay: .12s; }
  .hero .actions { animation-delay: .22s; }
  .oneline-svg { animation: trace .6s ease-out 2.3s both; }
  .oneline .sig, .oneline .inst, .oneline .blue { animation: appear .3s linear 2.7s both; }
  .hero::before, .page-head::before, .hero::after, .page-head::after { animation: rail .8s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes photos-out { to { opacity: 0; visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes trace { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* Closing call to action, on every page but Contact */
.cta { --blue: var(--black); --muted: var(--charcoal); background: var(--yellow); color: var(--black); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 17ch; }
.cta-actions { display: grid; gap: 16px; justify-items: start; }
.cta-phone { font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); letter-spacing: -0.01em; color: var(--black); text-decoration: none; }
.cta-phone:hover { text-decoration: underline; color: var(--black); }
.cta .btn { background: var(--black); border-color: var(--black); color: var(--white); }
.cta .btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Footer title block */
.title-block { background: var(--black); padding-block: 48px 32px; }
.tb { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.7fr); border: 1.5px solid var(--ink); }
.tb > div { padding: 12px 14px; border-left: 1px solid var(--ink); display: grid; gap: 4px; align-content: start; font-size: 0.92rem; line-height: 1.45; min-width: 0; }
.tb > div:first-child { border-left: 0; }
.tb .label { color: var(--muted); font-size: 0.68rem; }
.tb strong { font: 600 1rem/1.3 var(--display); }
.tb .sheet { color: var(--yellow); font: 600 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; }
.tb a { overflow-wrap: anywhere; }
.fine { margin-top: 10px; font: 400 0.75rem/1.5 var(--mono); color: var(--muted); max-width: none; }

@media (min-width: 1100px) {
  body { font-size: 18px; }
}
@media (max-width: 860px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-main { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .quick { padding-left: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feeders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-fig { width: 100%; max-width: 440px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb > div:nth-child(3) { border-left: 0; }
  .tb > div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .plates-3, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .tile summary { grid-template-columns: 48px minmax(0, 1fr) 28px; }
  .tile .icon { width: 44px; height: 44px; }
  .tile p { grid-column: 2; }
  .tile .chev { grid-column: 3; grid-row: 1; width: 22px; height: 22px; }
  .tile-body { grid-template-columns: 48px minmax(0, 1fr); padding-bottom: 24px; }
  .tile-body .ticks { columns: 1; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feeders { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-left: 4px solid var(--logo); }
  .feeders li { border-top: 0; padding: 10px 0 10px 40px; }
  .feeders li::before { left: 0; top: 50%; height: 0; width: 12px; border-left: 0; border-top: 1.4px solid var(--ink); }
  .feeders li::after { left: 12px; top: calc(50% - 6px); }
  body { font-size: 16px; }
  .groups, .people, .plates-3, .gallery { grid-template-columns: minmax(0, 1fr); }
  .client-short { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry img { max-width: 180px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .zoom { max-width: 200px; }
  .site-head .wrap { padding-block: 10px; }
}

/* About: firm profile table */
.profile th[scope="row"] { width: 28%; font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); vertical-align: top; }

/* Thein's review, 2026-11-10 */
.plate.fit img { object-fit: contain; background: var(--white); }
.plates-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plates-2 img { aspect-ratio: 16 / 9; object-fit: cover; }
.feature .zoom img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 480px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .brand img { height: 48px; }
}
@media (max-width: 620px) { .plates-2 { grid-template-columns: minmax(0, 1fr); } }
