/* Palette, typography and paper cards from Yury's Product Workbench. */
:root {
  color-scheme: light;
  --ink: #1b2b27;
  --ink-light: #495953;
  --line: #273e3452;
  --accent: #a1442c;
  --porcelain: #f4ede0;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Space Grotesk", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  font: 16px/1.5 var(--sans);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #e6e5d9; }
a { color: inherit; text-underline-offset: .25em; }
a, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
.wrap { width: min(100% - clamp(34px, 9.3vw, 138px), 1360px); margin-inline: auto; }
[id] { scroll-margin-top: 24px; }
.eyebrow { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.topbar { background: #e6e5d9; border-bottom: 1px solid var(--line); }
.topbar .wrap { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { text-decoration: none; font: 700 25px/1 var(--sans); letter-spacing: -.055em; white-space: nowrap; }
.wordmark span, #name span, .section h2 span, .thesis em { color: var(--accent); }
.topbar nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 43px); font-weight: 650; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.topbar .header-audit { border: 1px solid #637367; padding: 8px 12px; border-radius: 2px; white-space: nowrap; }
.hero { background: radial-gradient(ellipse at 81% 70%, #b0c0b48f, transparent 55%), linear-gradient(122deg, #e8e5d7, #d2d8ce); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); gap: clamp(30px, 6.4vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 104px); }
.identity-top { display: flex; align-items: center; gap: clamp(14px, 2vw, 27px); }
.portrait { width: clamp(57px, 5.2vw, 77px); height: auto; flex: 0 0 auto; border: 1px solid #6e7668; box-shadow: 5px 5px 0 #7785773d; border-radius: 2px; }
.identity-label { margin-bottom: 10px; }
#name { font: 700 clamp(26px, 3.2vw, 49px)/.98 var(--sans); letter-spacing: -.055em; }
.thesis { font: 400 clamp(43px, 5.15vw, 76px)/.94 var(--serif); letter-spacing: -.025em; margin-top: 22px; max-width: 17ch; }
.bio { margin-top: 15px; max-width: 51ch; font-size: clamp(16px, 1.35vw, 21px); color: var(--ink-light); }
.audit-promise { max-width: 54ch; margin-top: 11px; color: var(--ink-light); }
.audit-promise strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 11px; min-height: 47px;
  padding: 9px 13px; border: 1px solid #586b5d; border-radius: 2px; background: #f5efdfbe;
  color: var(--ink); font: 650 15px/1.15 var(--sans); text-decoration: none;
}
.button:hover { background: #fffaed; }
.button.primary { background: #264438; border-color: #264438; color: #fffaed; }
.button.primary:hover { background: #36594a; }
.shelf { align-self: center; padding-top: 17px; min-width: 0; }
.shelf-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 9px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.shelf-title h2 { font-size: 16px; }
.shelf-title span { color: var(--ink-light); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(7px, 1.5vw, 25px); }
.project-card {
  --angle: -4deg;
  display: flex; flex-direction: column; padding: clamp(5px,.7vw,11px); min-width: 0;
  transform: rotate(var(--angle)); transition: transform .32s cubic-bezier(.22,.62,.36,1);
  color: var(--ink); text-decoration: none; background: #fbf3e3; border: 1px solid #aaa894;
  border-radius: 3px; box-shadow: 2px 12px 22px #4b564536;
}
.project-card:nth-child(2) { --angle: 0deg; transform: translateY(-5px); }
.project-card:nth-child(3) { --angle: 4deg; }
.project-card:hover, .project-card:focus-visible { z-index: 1; transform: translateY(-7px) rotate(0); background: #fff9ec; }
.card-image { display: block; width: 100%; aspect-ratio: .96; background: #e4d6ba; border: 1px solid #4a593428; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card:first-child img { object-position: 51% center; }
.project-card:nth-child(2) img { object-position: 58% center; }
.em-card .card-image { background: radial-gradient(at 24% 19%, #efe1cb, #b2bfb1); }
.em-card img { object-fit: contain; padding: 4%; }
.card-label { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 2px 3px; padding: 8px 2px 1px; }
.card-label strong { font-size: clamp(12px,1.24vw,18px); line-height: 1.15; }
.card-label small { grid-column: 1; color: var(--ink-light); font-size: clamp(11px,.86vw,13px); line-height: 1.25; }
.card-label > span { grid-row: 1; grid-column: 2; color: var(--accent); }
.examples { background: #eee9da; border-top: 1px solid var(--line); padding-block: clamp(23px, 3.1vw, 42px); }
.examples-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 17px; }
.examples-heading h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; line-height: 1.15; }
.examples-heading > p, .example-grid p { color: var(--ink-light); font-size: 15px; }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.example-grid li { border: 1px solid var(--line); padding: 12px 14px; background: #f7f1e4; }
.example-grid li:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.example-grid h3 { font-size: 16px; margin-bottom: 3px; }
.example-grid .source-link { display: inline-block; margin-top: 7px; }
.section { padding-block: clamp(38px,6vw,82px); border-top: 1px solid var(--line); }
.work { background: linear-gradient(140deg,#bccec4,#dcdcc9 69%,#c4d2c5); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 22px; flex-wrap: wrap; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.section-heading h2, .contact h2 { font: 400 clamp(47px,6.4vw,97px)/.88 var(--serif); letter-spacing: -.032em; }
.section-heading > p { color: var(--ink-light); }
.feature-case { display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); gap: clamp(22px,6vw,92px); padding: clamp(23px,4vw,52px) 0; align-items: center; }
.case-summary h3 { font: 700 clamp(34px,5vw,66px)/.97 var(--sans); letter-spacing: -.065em; margin-top: 8px; }
.case-summary > p:not(.eyebrow), .case-copy > p:not(.eyebrow) { margin-top: 10px; max-width: 51ch; color: #3c5148; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 20px 0 17px; }
.credentials li { padding: 1px clamp(10px,1.5vw,23px); border-left: 1px solid var(--line); display: grid; gap: 3px; }
.credentials li:first-child { padding-left: 0; border: 0; }
.credentials strong { font: 700 clamp(26px,2.55vw,38px)/1 var(--sans); letter-spacing: -.05em; }
.credentials span { font: 400 11px/1.25 var(--mono); color: #3c5148; }
.case-links { display: flex; align-items: center; gap: 9px 16px; flex-wrap: wrap; }
.source-link { font-size: 14px; font-weight: 650; }
.mac {
  min-width: 0; max-width: 600px; width: 100%; justify-self: center;
  border-radius: 22px; border: 1px solid #9f997e; padding: clamp(12px,2vw,23px);
  background: radial-gradient(ellipse at 25% 13%,#f4ebd7,#e7dac0 56%,#bcae91);
  box-shadow: inset 0 1px 2px #fff8e9, 4px 3px 0 #c4b69c, 8px 4px 0 #ac9d82, 14px 13px 24px -3px #273c3461;
}
.mac-bezel { border-radius: 13px; padding: 8px; background: linear-gradient(145deg,#675e4d,#a89577 36%,#eadbc0); }
.crt { border-radius: 9px; overflow: hidden; border: 1px solid #253027; background: #24372f; color: #f4ede0; }
.crt-title { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.4 var(--mono); padding: 6px 9px; }
.crt img { width: 100%; height: auto; aspect-ratio: 1400 / 788; }
.mac-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding-top: 7px; font-size: 14px; }
.mac-caption b { font-size: 19px; letter-spacing: -.05em; }
.case-grid, .bundle-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.case { background: #f6efe1; border: 1px solid #aaa894; border-radius: 3px; overflow: hidden; }
.case img { width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; object-position: center 44%; }
.case img.paper-image { object-position: center top; }
.case img.emozu-image { object-fit: contain; background: radial-gradient(at 24% 19%, #efe1cb, #b2bfb1); }
.case-copy, .bundle, .intake { padding: clamp(14px,2vw,24px); }
.case h3, .bundle h3, .tools h3 { font: 700 clamp(23px,2.7vw,39px)/1 var(--sans); letter-spacing: -.055em; margin-top: 6px; }
.case-copy .case-links { margin-top: 10px; }
.tools { margin-top: clamp(23px,4vw,50px); }
.tools h3 { font-size: 23px; }
.tool-grid, .bundle-grid { display: grid; gap: 13px; margin-top: 12px; }
.tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.tool-grid li { border-top: 1px solid var(--line); padding-top: 10px; }
.tool-grid a { font-weight: 700; }
.tool-grid p, .bundle-options p { color: var(--ink-light); font-size: 14px; }
.bundles { background: var(--porcelain); }
.bundle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bundle { display: flex; flex-direction: column; min-width: 0; border: 1px solid #aaa894; border-radius: 3px; background: #fffaee; }
.bundle:first-child { background: #edf0df; }
.bundle h3 { font-size: clamp(22px, 2.35vw, 34px); }
.bundle > p:not(.eyebrow) { color: var(--ink-light); margin: 10px 0 14px; }
.bundle .source-link { margin-top: auto; align-self: flex-start; }
.bundle-options { margin-top: 12px; }
.bundle-options > div { border-top: 1px solid var(--line); padding-top: 10px; }
.contact { background: #d3ddd1; }
.contact-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(18px,5vw,74px); }
.contact h2 { margin: 9px 0 13px; font-size: clamp(45px,5.8vw,82px); }
#audit-request-copy { max-width: 48ch; color: #3c5148; }
.intake { background: #f6efe1; border-radius: 3px; border: 1px solid #aaa894; }
.intake label { display: block; font-weight: 650; margin-bottom: 6px; }
.intake textarea {
  display: block; width: 100%; border-radius: 2px; border: 1px solid #78877b; background: #fffaf0;
  color: var(--ink); font: inherit; padding: 9px 10px; resize: vertical; margin-bottom: 12px;
}
.intake textarea::placeholder, #audit-note { color: #495953; }
#audit-note { font-size: 13px; margin-top: 7px; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding-block: 15px; font: 400 12px/1.4 var(--mono); }
@media (max-width: 1040px) {
  .hero-inner { gap: 30px; }
}
@media (max-width: 760px) {
  .hero-inner, .feature-case, .contact-inner { grid-template-columns: minmax(0,1fr); }
  .hero-inner { padding-block: 33px; gap: 24px; }
  .shelf { padding-top: 0; }
  .shelf-title { margin-bottom: 11px; }
  .cards { max-width: 535px; }
  .card-image { aspect-ratio: 1.22; }
  .bundle-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 500px) {
  .topbar .wrap { min-height: 58px; }
  .topbar nav a:not(.header-audit) { display: none; }
  .topbar .header-audit { font-size: 14px; }
  .identity-label { font-size: 10px; margin-bottom: 7px; }
  .thesis { margin-top: 13px; font-size: clamp(39px,10.6vw,54px); }
  .audit-promise { font-size: 14px; }
  .bio { font-size: 16px; margin-top: 9px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .button { padding-inline: 9px; font-size: 13px; }
  .card-label > span { display: none; }
  .card-label strong { font-size: 12px; }
  .case-grid, .bundle-options, .example-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
}
