/* ---------- Tokens ---------- */
:root {
  --bg: #f6f9fc;
  --bg-alt: #eaf1f8;
  --surface: #ffffff;
  --ink: #0d2238;
  --muted: #4f6478;
  --line: #d9e3ed;
  --primary: #0a5fb4;
  --primary-hover: #084c91;
  --on-primary: #ffffff;
  --accent: #0e9f8e;
  --soft: #e3eefa;
  --soft-accent: #dff4f1;
  --shadow: 0 1px 2px rgba(13, 34, 56, 0.05), 0 10px 30px rgba(13, 34, 56, 0.07);
  --shadow-lg: 0 2px 4px rgba(13, 34, 56, 0.06), 0 24px 60px rgba(13, 34, 56, 0.14);
  --radius: 18px;
  --header-h: 68px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a1624;
  --bg-alt: #0e1f33;
  --surface: #12263c;
  --ink: #e8f0f8;
  --muted: #9db2c6;
  --line: #24405c;
  --primary: #5aa9f5;
  --primary-hover: #7bbbf8;
  --on-primary: #06182b;
  --accent: #3fd0bc;
  --soft: #153453;
  --soft-accent: #12413f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 400;
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.scroll-progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
  background: var(--soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--primary);
}

.theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.menu-toggle {
  display: none;
  gap: 5px;
  align-content: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Buttons & tags ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}

.button-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.tag-logo img {
  width: auto;
  height: 18px;
  border-radius: 3px;
}

.tag-logo img.tag-logo-clix {
  width: auto;
  height: 22px;
  border-radius: 4px;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.12rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--soft) 0%, transparent 70%),
    radial-gradient(700px 360px at 0% 100%, var(--soft-accent) 0%, transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.hero-lead {
  max-width: 580px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 48px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
}

.hero-metrics strong {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}

.hero-metrics span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-portrait {
  position: relative;
  max-width: 440px;
  justify-self: end;
}

.portrait-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 820 / 900;
  object-fit: cover;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 24px -20px -20px 24px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.22;
}

.portrait-card {
  position: absolute;
  left: -28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-story {
  display: grid;
  gap: 18px;
  padding: 36px;
}

.about-story .tag-row {
  margin-top: 6px;
}

.done {
  padding: 32px;
  background: linear-gradient(160deg, var(--surface), var(--soft));
}

.done h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.done ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.done li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 0.98rem;
}

.done li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--soft-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-4.8' fill='none' stroke='%230e9f8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Research projects ---------- */
.project-list {
  display: grid;
  gap: 24px;
}

.project {
  padding: 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.project-featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.project-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.project-index {
  flex: none;
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}

.project-head h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.project-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.project-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 24px;
}

.project-body dt {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-body dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.99rem;
}

.project-official {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 16px;
}

/* ---------- Tools ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
}

.tool-card h3 {
  font-size: 1.5rem;
}

.tool-card > p {
  color: var(--muted);
  font-size: 0.98rem;
}

.tool-link {
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tool-link:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tool-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.tool-mark.has-icon {
  background: transparent;
}

.tool-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-live {
  background: var(--soft-accent);
  color: var(--accent);
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Paper ---------- */
.paper-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}

.paper-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  background: linear-gradient(160deg, var(--soft), var(--soft-accent));
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-logo {
  font-family: var(--font-head);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
}

.paper-logo em {
  color: var(--primary);
  font-style: normal;
}

.paper-date {
  color: var(--ink);
  font-weight: 600;
}

.paper-main {
  display: grid;
  gap: 16px;
  padding: 36px;
}

.paper-main h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.paper-summary {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--soft-accent);
}

.paper-authors,
.paper-doi {
  color: var(--muted);
  font-size: 0.9rem;
}

.paper-doi a {
  overflow-wrap: anywhere;
}

/* ---------- Photography ---------- */
.clix-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: -10px -14px 0;
  padding: 10px 14px;
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
}

.clix-brand:focus-visible {
  outline-offset: 0;
}

.clix-mark {
  width: auto;
  height: 72px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 34, 56, 0.25);
  transition: transform 0.3s ease;
}

.clix-brand:hover .clix-mark {
  transform: scale(1.05);
}

.clix-wordmark {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
}

.clix-tagline {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.print {
  margin: 0;
}

/* Framed print: dark frame, off-white mat, inset photo, caption on the mat. */
.print-frame {
  padding: 9px;
  border-radius: 3px;
  background: linear-gradient(145deg, #2d3238, #0f1215 55%, #22272d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.25),
    0 18px 36px rgba(13, 34, 56, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.print:hover .print-frame {
  transform: translateY(-6px);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.25),
    0 28px 48px rgba(13, 34, 56, 0.34);
}

.print-mat {
  padding: 20px 20px 14px;
  background: #f5f2eb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

.print-mat img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.print-mat figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  color: #1b1f24;
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.2;
}

.print-mat figcaption em {
  color: #6b6558;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Journey ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.journey-title {
  margin-bottom: 28px;
  font-size: 1.7rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 32px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--primary);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline h4 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.timeline-org {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-logo-clix {
  width: auto;
  height: 24px;
  background: transparent;
  border-radius: 4px;
}

.timeline-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
}

.timeline li > p:last-child:not(.timeline-org):not(.timeline-date) {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 32px;
}

.contact-card > p {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.contact-links a:hover {
  border-color: var(--primary);
  background: var(--soft);
  color: var(--primary);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.contact-form .button {
  justify-self: start;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .journey-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-portrait {
    justify-self: center;
    max-width: 380px;
    margin-left: 28px;
  }

  .project-body,
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-body > div:last-child {
    grid-column: 1 / -1;
  }

  .paper-card {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .hero-actions .button,
  .photo-actions .button {
    flex: 1 1 100%;
  }

  .hero-portrait {
    margin-left: 0;
  }

  .portrait-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .hero-portrait::before {
    inset: 16px -8px -12px 16px;
  }

  .about-story,
  .glossary,
  .project,
  .paper-main,
  .paper-side,
  .contact-card,
  .contact-form {
    padding: 24px;
  }

  .project-body,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .project-head {
    flex-direction: column;
    gap: 8px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .print-frame {
    padding: 6px;
  }

  .print-mat {
    padding: 10px 10px 8px;
  }

  .print-mat figcaption {
    font-size: 0.82rem;
  }

  .print-mat figcaption em {
    font-size: 0.5rem;
  }

  .clix-mark {
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
