@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-semibold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --paper: #f7f6f0;
  --work-bg: #efeee6;
  --ink: #17241e;
  --muted: #46554c;
  --rule: #c8ccc0;
  --orange: #ba431e;
  --bright: #ff8355;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 4.8vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  font: 400 16px/1.57 "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #fab69a; color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid #1265bf; outline-offset: 5px; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1344px); margin-inline: auto; }
.skip {
  position: absolute; top: 8px; left: 8px; z-index: 10;
  padding: 10px 18px; color: white; background: var(--ink); transform: translateY(-145%);
}
.skip:focus { transform: translateY(0); }
.top {
  min-height: 83px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid var(--rule);
}
.brand, .top nav, .top nav a, .button, .text-link, .kicker.location, .back, .photo-flag { display: inline-flex; align-items: center; }
.brand { gap: 12px; font-size: 18px; font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.brand:hover, .top nav a:hover { text-decoration: none; }
.monogram, .footer .brand .monogram {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 2px 6px 0; background: var(--ink); color: var(--paper);
  font-size: 28px; line-height: 1; letter-spacing: -.1em; border-radius: 3px;
}
.monogram span { color: var(--bright); margin-left: 1px; }
.top nav { gap: clamp(18px, 3.2vw, 46px); }
.top nav a { min-height: 44px; gap: 12px; font-size: 14px; font-weight: 600; }
.top nav a:hover, .back:hover, .project h3 a:hover { color: var(--orange); }
.top nav .nav-resume { min-height: 38px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 2px; }
.top nav .nav-resume:hover { color: var(--paper); background: var(--ink); }
.kicker, .photo-flag, .back, .colophon {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  line-height: 1.4; letter-spacing: .105em; text-transform: uppercase;
}
.kicker { color: var(--orange); }
.kicker.on-dark { color: #ffb291; }
.location { color: var(--muted); gap: 9px; }
.loc-symbol {
  width: 12px; height: 12px; display: inline-block; position: relative;
  background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.loc-symbol::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--paper); }
.hero {
  display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr);
  gap: clamp(32px, 5.8vw, 91px); padding-block: clamp(44px, 5.1vw, 78px) clamp(52px, 6.3vw, 94px);
  align-items: center;
}
.hero h1 {
  margin: 24px 0 23px; font-weight: 650; font-size: clamp(80px, 8.6vw, 138px);
  line-height: .84; letter-spacing: -.088em;
}
.name-dot, h2 > span, .case-title h1 > span { color: var(--orange); }
.hero .role { font-size: clamp(22px, 2vw, 31px); line-height: 1.13; font-weight: 600; letter-spacing: -.048em; }
.hero .intro { max-width: 415px; color: var(--muted); margin: 15px 0 23px; font-size: clamp(15px, 1.16vw, 18px); line-height: 1.55; }
.button {
  justify-content: center; gap: 22px; min-height: 46px; padding: 11px 18px;
  border: 1px solid transparent; border-radius: 2px; font-weight: 650; font-size: 14px;
}
.button.primary { background: var(--ink); color: white; }
.button span, .text-link span, .footer-links a span { font-size: 1.25em; font-family: Arial, sans-serif; }
.button.primary:hover { background: #314c3d; text-decoration: none; }
.feature {
  display: block; position: relative; overflow: hidden; background: var(--ink); color: white;
  border-radius: 3px; box-shadow: 5px 6px 0 #dfdfd2;
}
.feature:hover { text-decoration: none; }
.feature-photo { position: relative; }
.feature-photo img { aspect-ratio: 4/3; object-fit: cover; }
.photo-flag {
  position: absolute; top: 18px; left: 18px; gap: 8px; color: var(--ink);
  background: #f7f6f0; padding: 7px 10px; border-radius: 1px; font-size: 10px; letter-spacing: .1em;
}
.photo-flag i { display: block; width: 6px; height: 6px; background: var(--orange); }
.feature-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px 17px; }
.feature-caption .kicker { font-size: 9px; }
.feature-caption strong { display: block; font-size: clamp(19px, 1.7vw, 28px); line-height: 1.25; letter-spacing: -.045em; }
.circle-arrow {
  display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px;
  border: 1px solid #728077; border-radius: 50%; font: 23px Arial, sans-serif;
}
.feature:hover .circle-arrow { background: var(--bright); color: var(--ink); border-color: var(--bright); }
.work { border-block: 1px solid var(--rule); background: var(--work-bg); padding: clamp(42px, 5.4vw, 84px) 0 clamp(54px, 6vw, 88px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h2 { font-size: clamp(35px, 3.9vw, 63px); font-weight: 650; letter-spacing: -.075em; line-height: 1.04; }
.section-heading > p { color: var(--muted); font-size: 15px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.15vw, 36px); }
.project { min-width: 0; display: flex; flex-direction: column; }
.project-img { display: block; position: relative; width: 100%; aspect-ratio: 1.55; overflow: hidden; border-radius: 2px; }
.project-img > img { height: 100%; object-fit: cover; }
.project .kicker { margin: 21px 0 7px; font-size: 10px; }
.project h3 { font-size: clamp(23px, 2.05vw, 33px); line-height: 1.17; letter-spacing: -.06em; }
.project h3 span { font: .72em Arial,sans-serif; vertical-align: .1em; color: var(--orange); }
.project > p:not(.kicker) { color: var(--muted); margin: 10px 0 15px; font-size: 15.5px; line-height: 1.55; }
.text-link { width: fit-content; gap: 10px; font-weight: 650; font-size: 14px; text-decoration: underline; text-decoration-color: #929c8e; }
.text-link:hover { color: var(--orange); text-decoration-color: currentColor; }
.project .text-link { margin-top: auto; }
.build-archive { margin-top: 37px; padding-top: 21px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px 35px; flex-wrap: wrap; }
.build-archive h3 { font-size: 20px; letter-spacing: -.035em; }
.build-archive p { color: var(--muted); max-width: 680px; margin-top: 4px; font-size: 15px; }
.app-visual {
  background-color: #a5b4a0;
  background-image: radial-gradient(ellipse at 20% 95%, #6b806e, transparent 70%), linear-gradient(135deg, #dce1c4, #91a695);
  display: grid; place-items: start center;
}
.app-visual img {
  display: block; width: 48%; margin-top: 7%; height: auto; object-fit: contain;
  border: 5px solid #283b32; border-bottom: 0; border-radius: 21px 21px 0 0;
  transform: rotate(5deg); box-shadow: 10px 15px 22px #36453755;
}
.schematic-card { background: #243b38; }
.schematic-card img { object-fit: contain; }
.experience { padding-block: clamp(55px, 6.6vw, 102px); display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(40px, 9vw, 150px); }
.career-intro .portrait { width: 85px; height: 99px; object-fit: cover; object-position: center 34%; margin-bottom: 22px; border-radius: 2px; }
.career-intro h2 { margin: 9px 0 15px; }
.career-intro div > p:not(.kicker) { color: var(--muted); max-width: 340px; margin-bottom: 20px; }
.timeline article, .education { border-top: 1px solid var(--rule); padding: 18px 0 21px; }
.timeline article:first-child { border-color: var(--ink); }
.timeline h3 { margin-top: 7px; font-size: clamp(23px, 2vw, 31px); letter-spacing: -.045em; line-height: 1.16; }
.timeline strong { display: block; margin: 5px 0; font-size: 15px; }
.timeline article > p:last-child, .education p { color: var(--muted); font-size: 15px; }
.education { padding-bottom: 0; }
.footer { color: var(--paper); background: var(--ink); padding-block: clamp(38px, 5vw, 75px) 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 25px; }
.footer h2 { margin-top: 9px; }
.footer h2 span { color: var(--bright); }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: 7px; font-weight: 600; font-size: 15px; }
.footer-links a { display: flex; align-items: center; gap: 12px; }
.footer-links span { color: var(--bright); }
.colophon { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #45564b; color: #b5c1b7; padding-top: 17px; margin-top: 18px; grid-column: 1/-1; font-size: 10px; }
.case { padding-block: 34px clamp(55px, 7vw, 96px); }
.back { gap: 10px; padding-block: 8px; color: var(--muted); letter-spacing: .055em; }
.case-title { margin: clamp(24px, 3.6vw, 54px) 0 clamp(22px, 3.7vw, 55px); }
.case-title h1 { margin: 12px 0 17px; max-width: 1080px; font-size: clamp(52px, 6.5vw, 108px); letter-spacing: -.081em; line-height: .98; }
.case-title > p:last-child { max-width: 760px; color: var(--muted); font-size: clamp(17px, 1.65vw, 23px); line-height: 1.5; }
.case-photo { width: 100%; }
.case-photo img { height: auto; border-radius: 3px; }
.trike-photo { max-width: 900px; }
.detail-photo { max-width: 900px; }
.studio-main { max-width: 1120px; }
.case-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(30px, 7vw, 110px); padding: clamp(34px,5vw,75px) 0; max-width: 1130px; }
.story-grid h2, .case-ending h2, .object-story h2, .robot-story h2 { font-size: clamp(28px,3vw,44px); letter-spacing: -.055em; }
.story-grid p, .object-story p:not(.kicker), .robot-story p:not(.kicker) { margin-top: 13px; color: var(--muted); max-width: 610px; }
.case-ending { border-top: 1px solid var(--rule); margin-top: clamp(32px,4.8vw,70px); padding-top: 30px; }
.case-ending h2 { margin-bottom: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.object-story, .robot-story { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: center; gap: clamp(26px,5vw,76px); max-width: 1130px; }
.object-story { padding-top: clamp(35px, 5vw, 70px); }
.farm-monitor { padding-top: 0; }
.object-story img, .robot-story img { border-radius: 3px; }
.object-story h2, .robot-story h2 { margin-top: 8px; }
.object-story .text-link { margin-top: 16px; }
.automation-page .story-grid { border-bottom: 1px solid var(--rule); }
.automation-page .case-ending { border: 0; margin-top: 0; }
@media (min-width: 1650px) { .hero { grid-template-columns: .86fr 1.14fr; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: .88fr 1.12fr; gap: 30px; }
  .hero h1 { font-size: clamp(69px, 9.4vw, 90px); }
  .hero .intro { font-size: 15px; }
  .projects-grid { gap: 18px; }
  .project h3 { font-size: 23px; }
  .project .kicker { letter-spacing: .04em; }
  .experience { gap: 44px; }
}
@media (max-width: 700px) {
  .top { min-height: 68px; gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
  .monogram { width: 31px; height: 31px; font-size: 24px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 12px; }
  .top nav .nav-resume { padding: 0 8px; gap: 5px; min-height: 32px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 43px; }
  .hero h1 { font-size: clamp(77px, 16vw, 106px); margin: 17px 0 18px; line-height: .89; }
  .hero h1 { max-width: 100%; }
  .hero .role { font-size: 23px; }
  .hero .intro { max-width: 480px; margin: 12px 0 18px; }
  .hero .button { padding: 9px 15px; min-height: 42px; }
  .feature { max-width: 500px; }
  .feature-caption { padding: 12px 16px 14px; }
  .photo-flag { top: 13px; left: 13px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 8px; }
  .projects-grid { grid-template-columns: 1fr; gap: 29px; }
  .project + .project { border-top: 1px solid var(--rule); padding-top: 27px; }
  .project-img { aspect-ratio: 1.65; max-height: 310px; }
  .project .kicker { margin-top: 14px; }
  .project h3 { font-size: 28px; }
  .project > p:not(.kicker) { margin-bottom: 9px; }
  .experience { grid-template-columns: 1fr; gap: 24px; }
  .career-intro { display: flex; align-items: start; gap: 17px; }
  .career-intro .portrait { margin: 0; width: 72px; height: 86px; flex: 0 0 72px; }
  .career-intro h2 { margin-top: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .colophon { margin-top: 0; }
  .story-grid, .object-story, .robot-story { grid-template-columns: 1fr; }
  .object-story img { max-width: 360px; }
  .case { padding-top: 20px; }
}
@media (max-width: 430px) {
  .hero h1 { line-height: .84; }
  .brand > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .top, .footer, .button, .skip, .back { display: none; }
  body, .work { background: white; }
  .wrap { width: 100%; }
  .hero, .experience, .work, .case { padding-block: 14pt; }
  .project, .timeline article, figure { break-inside: avoid; }
}
