/* ==========================================================================
   MARAHMAN.CA — The Engineer's Atelier
   Type system: Bricolage Grotesque (display) · Geist (text) · Geist Mono (labels)
   To try another look, change the three font variables below.
   ========================================================================== */

:root {
  /* colour */
  --paper: #f3efe7;
  --paper-2: #e9e3d7;
  --ink: #1d1e1b;
  --muted: #5f5b54;          /* 6.2:1 on paper */
  --orange: #e0622a;         /* graphics, large type, on dark */
  --orange-text: #b8481a;    /* small text on light backgrounds (AA) */
  --orange-soft: #ee9466;    /* small text on dark backgrounds */
  --line: #d3cbbd;
  --dark: #1f201d;
  --dark-2: #292a26;
  --dark-line: #494a44;
  --on-dark: #f5f1e9;
  --on-dark-muted: #c4c0b7;

  /* type */
  --display: 'Bricolage Grotesque', 'Inter Display', 'Inter', system-ui, sans-serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* layout */
  --gutter: max(clamp(20px, 5.5vw, 76px), calc((100vw - 1260px) / 2));
  --radius: 4px;
  /* drawn asterisk (the ✳ character turns into a green emoji on iPhones) */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- shared label style ---------- */
.eyebrow, .section-kicker, .work-type, .art-label, .art-note, .hero-figure figcaption,
.publication-list article > span, .timeline time, .education-band span, .hero-facts dt,
.topline, footer, .research-note, .work-footnote {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- top line + header ---------- */
.topline {
  min-height: 34px; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--ink); color: #d8d1c5; font-size: 11px;
}

.site-header {
  height: 80px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 239, 231, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: rgba(29, 30, 27, .1); box-shadow: 0 8px 30px -18px rgba(29, 30, 27, .35); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { font: 700 28px/1 var(--display); letter-spacing: -.1em; }
.brand-mark span, .brand-name span, .footer-brand span { color: var(--orange); }
.brand-name { font: 600 19px/1 var(--display); letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a:not(.nav-contact)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.nav-contact):hover::after { transform: scaleX(1); }
.nav-contact {
  border: 1px solid var(--ink); padding: 11px 18px !important; border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-contact b { color: var(--orange); margin-left: 8px; transition: color .2s; }
.nav-contact:hover { background: var(--ink); color: var(--on-dark); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(620px, calc(100vh - 114px), 780px);
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  display: flex; align-items: center;
}
.hero::after { /* paper wash so the headline blends into the photo */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(243,239,231,.97) 24%, rgba(243,239,231,.82) 40%, rgba(243,239,231,.18) 64%, rgba(20,20,18,.05) 100%);
}
.hero-content { position: relative; width: min(640px, 52%); }

.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--orange-text); margin-bottom: 28px; }
.eyebrow-line { width: 36px; height: 1px; background: currentColor; }

h1 {
  font: 600 clamp(54px, 7vw, 108px)/.96 var(--display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -.04em;
  margin-bottom: 30px;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; font-weight: 300; color: var(--orange-text); letter-spacing: -.03em; }
h1 em { color: var(--orange); }
.orange { color: var(--orange); }

.hero-copy { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; max-width: 480px; color: #46433d; margin-bottom: 34px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }

.button {
  display: inline-flex; align-items: center; gap: 28px; padding: 17px 22px;
  font-size: 15px; font-weight: 600; border-radius: var(--radius);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.button-dark { background: var(--ink); color: var(--on-dark); }
.button-dark span, .button-outline span { color: var(--orange); font-size: 18px; transition: transform .25s; }
.button-dark:hover { background: var(--orange); transform: translateY(-2px); }
.button-dark:hover span { color: #fff; transform: translate(2px, -2px); }

.text-link, .underlink {
  font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--orange); padding-bottom: 4px;
  transition: color .2s;
}
.text-link span, .underlink span { color: var(--orange); margin-left: 8px; }
.text-link:hover, .underlink:hover { color: var(--orange-text); }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 34px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.hero-facts dd { font-size: 14px; font-weight: 500; line-height: 1.4; }

.hero-figure { position: absolute; inset: 0; z-index: -2; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 52%; }

/* ---------- skills strip ---------- */
.skills-strip { overflow: hidden; background: var(--ink); color: var(--on-dark); border-block: 1px solid var(--ink); }
.skills-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.skills-track li {
  font: 500 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 20px 0; white-space: nowrap; display: flex; align-items: center;
}
.skills-track li::after { content: ''; width: 13px; height: 13px; margin: 0 30px; background: var(--orange); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.skills-strip:hover .skills-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.section-kicker { color: var(--orange-text); margin-bottom: 28px; }
.section-kicker.light { color: var(--orange-soft); }

.intro-grid h2, .work-heading h2, .approach-layout h2, .research-left h2, .timeline-grid h2, .contact-copy h2 {
  font: 600 clamp(36px, 4.6vw, 64px)/1.05 var(--display);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.work-heading h2 em, .approach-layout h2 em, .research-left h2 em, .timeline-grid h2 em, .contact-copy h2 em { color: var(--orange-soft); }
.approach-layout h2 em, .timeline-grid h2 em, .intro-grid h2 em { color: var(--orange-text); }
.approach-layout > h2, .timeline-grid > div:first-child { position: sticky; top: 120px; }

/* ---------- intro ---------- */
.intro-strip { padding: clamp(80px, 9vw, 130px) var(--gutter) clamp(60px, 7vw, 90px); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 8vw, 110px); align-items: start; }
.intro-copy { max-width: 540px; }
.intro-copy p { color: #4f4b45; margin-bottom: 20px; text-wrap: pretty; }
.underlink { display: inline-block; margin-top: 8px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line); }
.principles > div { padding: 30px 28px 28px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.principles > div + div { border-left: 1px solid var(--line); padding-left: 30px; }
.principle-icon { grid-row: span 2; color: var(--orange); font-size: 28px; line-height: 1.1; }
.principle-icon svg { width: 26px; height: 26px; display: block; margin-top: 2px; }
.principles b { font: 600 19px/1.3 var(--display); letter-spacing: -.01em; }
.principles p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------- work ---------- */
.work-section { background: var(--dark); color: var(--on-dark); padding: clamp(80px, 9vw, 130px) var(--gutter) clamp(56px, 6vw, 80px); position: relative; overflow: hidden; }
.work-section::before { content: ''; position: absolute; right: -40px; top: 60px; width: 340px; height: 340px; background: rgba(255, 255, 255, .035); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; pointer-events: none; }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 56px; position: relative; }
.work-heading > p { font-size: 16px; color: var(--on-dark-muted); max-width: 340px; padding-bottom: 6px; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.work-large { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.work-large .work-art { height: auto; min-height: 360px; }
.work-large .work-info { padding: 40px 40px 40px 44px; align-items: flex-start; }
.work-large .work-info h3 { font-size: clamp(28px, 3vw, 40px); }
.work-large .work-info p { font-size: 17px; max-width: 520px; }
.work-points { margin-top: 22px; border-top: 1px solid var(--dark-line); max-width: 520px; }
.work-points li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--dark-line); font-size: 15px; color: var(--on-dark); position: relative; }
.work-points li::before { content: '→'; position: absolute; left: 0; color: var(--orange-soft); }
.work-card { border: 1px solid var(--dark-line); background: var(--dark-2); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; }
.work-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.work-card:hover .work-arrow { transform: translate(3px, -3px); }

.work-art { height: 290px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.art-label { position: absolute; top: 18px; left: 22px; color: #ddd6ca; font-size: 11px; z-index: 2; }
.art-note { position: absolute; bottom: 16px; left: 22px; color: #bbb6ac; font-size: 11px; z-index: 2; }

.art-mech { background: radial-gradient(ellipse at 50% 50%, #4a4d47, #292a26 70%); color: #d9a673; }
.art-mech svg { width: 80%; height: 76%; opacity: .92; }
.art-code { background: linear-gradient(135deg, #353a35, #1e2422); padding: 44px 0 42px; }
.code-window { width: 74%; background: #181c1b; border: 1px solid #59605a; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 40px #1119; }
.code-top { height: 28px; background: #333a35; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.code-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.code-top span { font: 11px var(--mono); color: #bfc8be; margin-left: 8px; }
.code-window pre { font: 12px/1.6 var(--mono); color: #d8dbce; padding: 10px 20px; margin: 0; overflow: hidden; }
.code-window pre b { color: var(--orange-soft); font-weight: 500; }
.art-analysis { background: radial-gradient(ellipse at 50% 50%, #5a4a3e, #292a26 75%); }
.art-analysis svg { width: 84%; height: 78%; }
.art-research { background: radial-gradient(ellipse at 50% 50%, #424b44, #242a27 75%); }
.battery-illustration { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.battery-cap { height: 13px; width: 42px; background: #c8b9a0; border: 2px solid #e0d4c1; }
.battery-body { width: 118px; height: 138px; border: 2px solid #d6c9b5; background: linear-gradient(90deg, #9b9c87, #d6c9b5, #858d7c); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #2c3029; box-shadow: 0 0 40px #e5a45c30; }
.battery-body span { font: 700 22px var(--display); }
.battery-body small { font: 500 9px var(--mono); text-align: center; margin-top: 12px; line-height: 1.5; letter-spacing: .06em; }
.research-orbit { position: absolute; border: 1px solid #db9361; border-radius: 50%; width: 260px; height: 100px; transform: rotate(-28deg); }
.orbit-b { transform: rotate(32deg); width: 310px; height: 125px; }

.work-info { padding: 26px 28px 30px; display: flex; justify-content: space-between; gap: 24px; }
.work-type { color: var(--orange-soft); font-size: 11px; }
.work-info h3 { font: 600 clamp(22px, 2vw, 27px)/1.2 var(--display); letter-spacing: -.02em; margin: 10px 0 12px; text-wrap: balance; }
.work-info p { font-size: 15px; line-height: 1.65; color: var(--on-dark-muted); max-width: 440px; }
.work-arrow { font-size: 24px; color: var(--orange-soft); transition: transform .3s; }
.work-footnote { color: #a5a49b; margin-top: 28px; font-size: 11px; text-transform: none; letter-spacing: .04em; position: relative; }

/* ---------- approach ---------- */
.approach-section { padding: clamp(80px, 9vw, 130px) var(--gutter); }
.approach-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 8vw, 110px); align-items: start; }
.approach-list > div { display: grid; grid-template-columns: 44px 1fr 24px; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; transition: padding .3s; }
.approach-list > div:last-child { border-bottom: 1px solid var(--line); }
.approach-list > div:hover { padding-left: 10px; }
.approach-list > div > span { font: 500 13px var(--mono); color: var(--orange-text); padding-top: 6px; letter-spacing: .06em; }
.approach-list h3 { font: 600 22px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.approach-list p { font-size: 15.5px; color: var(--muted); max-width: 440px; }
.approach-list > div > b { color: var(--orange); font-size: 20px; font-weight: 400; padding-top: 2px; }

/* ---------- research ---------- */
.research-section { background: #2a2c28; color: var(--on-dark); padding: clamp(80px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 8vw, 110px); }
.research-left h2 { margin-bottom: 26px; }
.research-left > p { font-size: 16px; color: var(--on-dark-muted); max-width: 440px; margin-bottom: 8px; }
.button-outline { border: 1px solid #a7a49b; color: var(--on-dark); margin-top: 22px; }
.button-outline:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

.publication-list article { position: relative; border-top: 1px solid #5a5d56; padding: 28px 56px 28px 0; }
.publication-list article:last-of-type { border-bottom: 1px solid #5a5d56; }
.publication-list article > span { font-size: 11px; color: var(--orange-soft); }
.publication-list h3 { font: 500 clamp(18px, 1.6vw, 21px)/1.4 var(--display); letter-spacing: -.01em; margin: 12px 0; text-wrap: pretty; }
.publication-list p { font-size: 15px; color: #c2beb5; }
.publication-list article > b { position: absolute; right: 0; top: 28px; font: 500 13px var(--mono); color: var(--orange-soft); }
.research-note { font-size: 11px; color: #c2beb5; padding-top: 22px; text-transform: none; letter-spacing: .04em; }

/* ---------- timeline ---------- */
.timeline-section { padding: clamp(80px, 9vw, 130px) var(--gutter) clamp(60px, 7vw, 90px); }
.timeline-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 8vw, 110px); }
.timeline-grid > div:first-child > p { font-size: 16px; color: var(--muted); max-width: 300px; margin-top: 22px; }
.timeline article { padding: 0 0 34px 28px; border-left: 1px solid var(--line); position: relative; }
.timeline article:last-child { padding-bottom: 0; }
.timeline article::before { content: ''; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px var(--paper); }
.timeline time { font-size: 12px; color: var(--orange-text); }
.timeline h3 { font: 600 23px/1.25 var(--display); letter-spacing: -.02em; margin: 8px 0 4px; }
.timeline p { font-size: 15.5px; font-weight: 500; color: #46433d; margin-bottom: 8px; }
.timeline small { font-size: 15px; line-height: 1.6; color: var(--muted); display: block; max-width: 520px; }

.education-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--paper-2); padding: 32px 36px; margin-top: 64px; border-radius: var(--radius); }
.education-band > div { display: flex; flex-direction: column; gap: 6px; }
.education-band span { font-size: 11px; color: var(--orange-text); }
.education-band b { font: 600 42px/1.1 var(--display); letter-spacing: -.03em; }
.education-band p { font-size: 14.5px; color: var(--muted); }
.education-also { margin-top: 20px; font-size: 14.5px; color: var(--muted); max-width: 820px; }

/* ---------- contact ---------- */
.contact-section { background: var(--dark); color: var(--on-dark); padding: clamp(80px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: .7fr 1.3fr; gap: 8%; align-items: center; position: relative; overflow: hidden; }
.contact-stamp { font: 700 clamp(52px, 7.4vw, 108px)/.86 var(--display); letter-spacing: -.05em; text-transform: uppercase; color: #383a34; position: relative; }
.stamp-star { color: var(--orange); width: 40px; height: 40px; position: absolute; top: -22px; right: 6%; }
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy > p { font-size: 17px; color: #cbc7be; max-width: 500px; }
.contact-email {
  display: inline-flex; gap: 22px; align-items: center; font: 500 clamp(16px, 2vw, 22px) var(--mono);
  border-bottom: 1px solid #77766f; padding: 14px 0; margin-top: 18px; transition: border-color .25s, color .25s;
}
.contact-email span { color: var(--orange-soft); transition: transform .25s; }
.contact-email:hover { border-color: var(--orange); color: #fff; }
.contact-email:hover span { transform: translate(3px, -3px); }

footer { background: #171815; color: #b0ada4; padding: 26px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.footer-brand { font: 700 24px var(--display); color: #eee; text-transform: none; letter-spacing: -.04em; }
footer a:last-child:hover { color: var(--orange-soft); }

/* ---------- scroll reveal (only when JS is on and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .work-card.reveal.in:hover { transform: translateY(-6px); }
  .js .work-card.reveal:nth-child(2) { transition-delay: .08s; }
  .js .work-card.reveal:nth-child(4) { transition-delay: .08s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skills-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .skills-track li[aria-hidden] { display: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .hero { align-items: flex-start; min-height: 760px; padding-bottom: 300px; }
  .hero-content { width: min(640px, 100%); }
  .hero::after { background: linear-gradient(180deg, var(--paper) 0%, rgba(243,239,231,.96) 45%, rgba(243,239,231,.55) 68%, rgba(243,239,231,0) 100%); }
  .hero-figure img { object-position: 70% 100%; }
  .intro-grid, .approach-layout, .timeline-grid, .research-section { grid-template-columns: 1fr; }
  .approach-layout > h2, .timeline-grid > div:first-child { position: static; }
  .work-grid { grid-template-columns: 1fr; }
  .work-large { grid-template-columns: 1fr; }
  .work-large .work-art { min-height: 300px; }
  .education-band { grid-template-columns: 1fr 1fr; }
  .work-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-heading > p { max-width: 520px; }
  .contact-section { grid-template-columns: 1fr; gap: 40px; }
  .nav { gap: 24px; }
}

/* ---------- mobile ---------- */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topline span:last-child { display: none; }
  .site-header { height: 68px; }
  .brand-name { font-size: 18px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin-right: -12px; }
  .menu-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .nav .nav-contact { border: 0; padding: 16px 0 !important; border-radius: 0; }
  .nav .nav-contact:hover { background: none; color: var(--orange-text); }

  .work-section::before { width: 200px; height: 200px; right: -50px; top: 40px; }
  .hero { padding-top: 40px; min-height: 820px; padding-bottom: 280px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:last-child { grid-column: span 2; }

  .principles { grid-template-columns: 1fr; }
  .principles > div { padding: 22px 0; }
  .principles > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }

  .work-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-art { height: 260px; }
  .art-code { height: auto; min-height: 300px; padding: 54px 0 48px; }
  .code-window { width: 88%; }
  .code-window pre { font-size: 11.5px; padding: 8px 16px; }
  .work-info, .work-large .work-info { padding: 22px 22px 26px; }
  .approach-list > div { grid-template-columns: 36px 1fr; }
  .approach-list > div > b { display: none; }
  .publication-list article { padding-right: 36px; }
  .education-band { grid-template-columns: 1fr; padding: 26px; gap: 22px; margin-top: 48px; }
  .contact-stamp { font-size: 68px; }
  .contact-email { font-size: 14px; gap: 12px; word-break: break-all; }
  footer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  footer span:nth-child(3) { text-align: right; grid-column: 2; grid-row: 1; }
  footer a:last-child { text-align: right; }
}
