:root {
  --paper: #efece6;
  --paper-2: #e7e3db;
  --ink: #14130f;
  --muted: #6b6760;
  --line: #d3cec3;
  --accent: #b23b1f;
  --accent-ink: #7d2813;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.grain {
  position: fixed;
  inset: -10%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.monogram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}
.monogram:hover { background: var(--ink); color: var(--paper); }

.site-nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3f7d4e;
  box-shadow: 0 0 0 3px rgba(63, 125, 78, 0.16);
}

/* ---------- layout ---------- */

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 10vw, 132px);
  align-items: end;
}

.hero h1 {
  font-size: clamp(46px, 8.2vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 18px 0 30px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.lede {
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 18px);
  color: #3c3831;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-2px); }

.link-quiet {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link-quiet:hover { border-color: var(--ink); color: var(--accent-ink); }

.hero-aside {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.hero-aside dl { margin: 0; display: grid; gap: 22px; }
.hero-aside dl div { display: grid; gap: 4px; }
.hero-aside dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-aside dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}
.aside-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}
.section-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- work ---------- */

.work { padding-bottom: clamp(72px, 10vw, 140px); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.card {
  grid-column: span 5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--wide { grid-column: span 7; }
.card--tall { grid-column: span 7; }
.card:nth-child(5),
.card:nth-child(6) { grid-column: span 6; }

.cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  isolation: isolate;
}
.card--wide .cover, .card--tall .cover { aspect-ratio: 16 / 10; }

.cover-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 19, 15, 0.62);
  z-index: 3;
}

.card-meta h3 {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.18;
}
.card-meta p {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 15px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.card:hover .arrow { opacity: 1; transform: none; }
.card:hover .cover > * { transform: scale(1.03); }
.cover > * { transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }

/* cover art 1 — museum infographic */
.cover-museum { background: linear-gradient(140deg, #dfd7c6 0%, #cfc4ad 60%, #c3b79e 100%); }
.cover-museum .shape { position: absolute; display: block; }
.cover-museum .s1 {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  left: 8%; top: 12%;
  background: radial-gradient(circle at 35% 30%, #b23b1f 0%, #7d2813 100%);
}
.cover-museum .s2 {
  width: 22%; height: 58%; right: 20%; top: 16%;
  background: #14130f;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.86;
}
.cover-museum .s3 {
  width: 36%; height: 2px; left: 46%; top: 58%;
  background: rgba(20, 19, 15, 0.7);
}

/* cover art 2 — brand */
.cover-brand { background: #eae4d7; }
.cover-brand .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(20,19,15,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,19,15,.16) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  mask-image: linear-gradient(120deg, #000 30%, transparent 85%);
}
.cover-brand .stamp {
  position: absolute;
  left: 12%; bottom: 14%;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 74px);
  letter-spacing: 0.08em;
  color: #14130f;
  mix-blend-mode: multiply;
}
.cover-brand .stamp::after {
  content: "";
  position: absolute; left: 2%; right: 12%; bottom: -8px; height: 2px;
  background: #b23b1f;
}

/* cover art 3 — motion */
.cover-motion { background: #14130f; }
.cover-motion .orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(239, 236, 230, 0.42);
}
.cover-motion .o1 { inset: 16% 22%; }
.cover-motion .o2 { inset: 28% 34%; border-color: rgba(178, 59, 31, 0.9); }
.cover-motion .o3 {
  width: 12%; aspect-ratio: 1; left: 24%; top: 50%;
  background: #b23b1f; border: 0;
}
.cover-motion .cover-tag { color: rgba(239, 236, 230, 0.6); }

/* cover art 4 — medical system */
.cover-med { background: #f4f1ea; }
.cover-med .pulse {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(20,19,15,.08) 0 1px, transparent 1px 7%),
    linear-gradient(180deg, transparent 49.6%, rgba(178,59,31,.85) 49.6% 50.6%, transparent 50.6%);
}
.cover-med .pulse::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 72% 34%, rgba(178,59,31,.22) 0 12%, transparent 13%),
              radial-gradient(circle at 28% 66%, rgba(20,19,15,.12) 0 9%, transparent 10%);
}

/* cover art 5 — covers series */
.cover-covers { background: #dcd5c6; display: block; }
.cover-covers .sheet {
  position: absolute;
  width: 34%; aspect-ratio: 3 / 4;
  border: 1px solid rgba(20,19,15,.25);
  box-shadow: 0 18px 40px rgba(20,19,15,.10);
}
.cover-covers .b1 { left: 12%; top: 12%; background: #14130f; transform: rotate(-6deg); }
.cover-covers .b2 { left: 34%; top: 18%; background: #b23b1f; transform: rotate(2deg); }
.cover-covers .b3 { left: 56%; top: 10%; background: #f4f1ea; transform: rotate(7deg); }

/* cover art 6 — 3d */
.cover-3d { background: linear-gradient(160deg, #cfd6cf 0%, #aeb9ae 100%); }
.cover-3d .cube {
  position: absolute;
  left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(52deg) rotateZ(38deg);
  transform-style: preserve-3d;
}
.cover-3d .cube i {
  position: absolute; inset: 0;
  background: #f4f1ea;
  border: 1px solid rgba(20,19,15,.22);
}
.cover-3d .cube i:nth-child(2) { transform: translateZ(38px); background: #e8e2d6; }
.cover-3d .cube i:nth-child(3) { transform: rotateY(90deg) translateZ(38px); background: #d9d2c4; }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.about h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 26px; }
.about-text p + p { margin-top: 16px; }
.about-text p { max-width: 56ch; color: #332f29; font-size: 17.5px; }

.about-facts { padding-top: 8px; }
.about-facts dl { margin: 0; display: grid; gap: 0; }
.about-facts dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.about-facts dl div:last-child { border-bottom: 1px solid var(--line); }
.about-facts dt { font-family: var(--serif); font-size: 22px; }
.about-facts dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- services ---------- */

.services { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 130px); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.service-list li:hover { background: rgba(20, 19, 15, 0.035); padding-left: 12px; }
.service-list .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 8px;
}
.service-list h3 { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.16; }
.service-list p { margin-top: 8px; max-width: 60ch; color: var(--muted); font-size: 15.5px; }

/* ---------- contact ---------- */

.contact {
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 10vw, 130px);
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0 34px;
}
.mail {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 40px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-note { margin-top: 34px; max-width: 46ch; color: var(--muted); font-size: 15.5px; }

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--pad) 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }

/* ---------- reveal ---------- */

.js .reveal { transform: translateY(18px); transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { max-width: 520px; }
  .about { grid-template-columns: 1fr; }
  .card, .card--wide, .card--tall, .card:nth-child(5), .card:nth-child(6) { grid-column: span 12; }
  .cover, .card--wide .cover, .card--tall .cover { aspect-ratio: 16 / 10; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; gap: 14px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; }
  .status { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .service-list li { grid-template-columns: 1fr; gap: 8px; }
  .service-list .num { padding-top: 0; }
  .about-facts dl div { grid-template-columns: 56px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: none; }
  * { animation: none !important; }
}
