/* Mica Charise portfolio. Tokens come from brand/refresh/tokens.json. */

@font-face { font-family: "Recoleta"; src: url("/assets/fonts/Recoleta-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --oat: #FBF6EE;
  --paper: #FFFDF8;
  --evergreen: #1D3A35;
  --moss: #56645F;
  --clay: #D4805C;
  --kiln: #B0583A;
  --kiln-dark: #96472D;
  --ink: #1F1414;
  --butter: #F6E4A0;
  --mist: #CDE7DF;
  --sky: #D3E2F4;
  --blush: #F7CDBD;
  --line: #E9E1D3;

  --display: "Recoleta", "Fraunces", Georgia, serif;
  --body: "Satoshi", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 24px;
  --shadow-raised: 0 1px 2px rgba(29,58,53,.06), 0 8px 24px -10px rgba(29,58,53,.16);
  --shadow-floating: 0 2px 4px rgba(29,58,53,.06), 0 18px 40px -16px rgba(29,58,53,.24);
  --shadow-pill: inset 0 -1px 0 rgba(47,43,67,.1), 0 1px 3px rgba(47,43,67,.1);
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --wrap: 1016px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--evergreen);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--kiln); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 88px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h-section { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.2; letter-spacing: -0.04em; }
.lede { font-size: 18px; line-height: 1.4; letter-spacing: -0.3px; color: var(--moss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-family: var(--body); font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.16px;
  transition: transform 220ms var(--ease-spring), background-color 220ms var(--ease), box-shadow 220ms var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--light { background: #fff; color: var(--kiln); box-shadow: var(--shadow-pill); }
.btn--light:hover { box-shadow: inset 0 -1px 0 rgba(47,43,67,.1), 0 6px 16px -6px rgba(47,43,67,.25); }
.btn--kiln { background: var(--kiln); color: #fff; padding: 12px 28px; }
.btn--kiln:hover { background: var(--kiln-dark); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-pill); }
.btn--ink:hover { background: #3A2A2A; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 30; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.nav__logo img { width: 45px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { font-weight: 500; font-size: 16px; letter-spacing: -0.3px; color: var(--evergreen); transition: color 200ms var(--ease); }
.nav__links a:not(.btn):hover { color: var(--kiln); }
.nav__links .btn { min-height: 40px; padding: 8px 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__toggle .bars, .nav__toggle .bars::before, .nav__toggle .bars::after { display: block; width: 24px; height: 1.5px; background: var(--moss); position: relative; transition: transform 260ms var(--ease), opacity 200ms; }
.nav__toggle .bars::before, .nav__toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle .bars::before { top: -8px; }
.nav__toggle .bars::after { top: 8px; }
.nav.is-open .nav__toggle .bars { background: transparent; }
.nav.is-open .nav__toggle .bars::before { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle .bars::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: 197px; padding-bottom: 60px;
  background:
    radial-gradient(38% 46% at 74% 40%, rgba(244, 196, 160, .45), transparent 70%),
    radial-gradient(42% 40% at 26% 50%, rgba(246, 220, 196, .55), transparent 70%),
    radial-gradient(60% 30% at 50% 0%, rgba(255, 253, 248, .9), transparent 80%),
    var(--oat);
}
.hero__grid { display: grid; grid-template-columns: 488px 480px; justify-content: space-between; align-items: start; }
.hero__role { font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: 0.6px; }
.hero__title { margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; }
.hero__title .accent { color: var(--kiln); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 80ms); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
.hero__lede { margin-top: 31px; font-size: 20px; line-height: 1.4; letter-spacing: -0.3px; color: var(--moss); }
.hero__ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo { width: 480px; aspect-ratio: 480 / 560; border-radius: 20px; overflow: hidden; background: #F3C9A3; box-shadow: var(--shadow-floating); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Ticker */
.ticker { margin: 120px auto 0; max-width: calc(var(--wrap) + 100px); position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.ticker li { width: 100px; height: 40px; display: grid; place-items: center; flex: none; }
.ticker li img { width: 20px; height: 20px; object-fit: contain; }
.tk-icon { width: 24px; height: 24px; background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: 96px 0; }
.section__head { max-width: 620px; }
.section__head .lede { margin-top: 12px; }

/* Services bento */
.bento { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-md); padding: 40px 32px; min-height: 573px; display: flex; flex-direction: column; }
.tile--wide { grid-column: span 2; padding: 40px; }
.tile--sky { background: var(--sky); }
.tile--mist { background: var(--mist); }
.tile--butter { background: var(--butter); }
.tile--paper { background: var(--paper); border: 1px solid var(--line); }
.tile__title { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.4; letter-spacing: -0.03em; }
.tile__body { margin-top: 18px; font-size: 18px; line-height: 1.4; letter-spacing: -0.3px; max-width: 300px; }
.tile--wide .tile__body { max-width: 295px; }
.tile__get { margin-top: 32px; }
.tile__get h4 { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.5; }
.tile__get p { margin-top: 8px; font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: -0.2px; color: var(--moss); max-width: 270px; }
.tile .btn { margin-top: 24px; align-self: flex-start; }
.tile--wide .tile__copy { display: flex; flex-direction: column; height: 100%; }
.tile--wide .tile__get { margin-top: auto; }

.peek { position: absolute; pointer-events: none; }
.peek__shot { border-radius: 14px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-floating); background: #fff; }
.peek__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.chip { position: absolute; background: var(--paper); border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow-floating); white-space: nowrap; }
.chip small { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: -0.2px; color: var(--moss); }
.chip b { display: block; margin-top: 2px; font-weight: 700; font-size: 22px; line-height: 1.2; }

.peek--fa { right: -40px; bottom: 150px; width: 346px; height: 270px; transform: rotate(-5deg); }
.peek--fa .peek__shot { width: 100%; height: 100%; }
.peek--fa .chip--a { top: -24px; right: 20px; transform: rotate(4deg); }
.peek--fa .chip--b { bottom: -20px; left: 40px; transform: rotate(-4deg); }

.peek--tjm { left: 30px; right: -40px; bottom: -40px; height: 220px; transform: rotate(-4deg); }
.peek--tjm .peek__shot { width: 270px; height: 208px; }
.peek--tjm .chip--a { top: 0; left: 160px; transform: rotate(4deg); }
.peek--tjm .chip--b { top: 90px; left: 120px; transform: rotate(-2deg); }

.peek--fss { left: 32px; right: 32px; bottom: -14px; height: 210px; }
.peek--fss .peek__shot { width: 259px; height: 201px; transform: rotate(4deg); margin-left: auto; }
.peek--fss .chip { left: -14px; bottom: 30px; transform: rotate(-4deg); }

.peek--cc { left: 50%; bottom: -120px; width: 140px; transform: translateX(-50%) rotate(4deg); }
.phone { border: 4px solid #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-floating); background: #fff; aspect-ratio: 452/1000; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.tile--split { padding: 0; }
.tile--split .tile__copy { padding: 32px 32px 24px; background: var(--paper); }
.tile__brand { flex: 1 0 228px; background: var(--blush); display: grid; place-items: center; align-content: center; gap: 22px; padding: 30px 20px; }
.tile__brand img { width: 150px; height: 70px; object-fit: cover; }
.swatches { display: flex; gap: 10px; }
.swatches span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; }

/* Case studies */
.cases { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; }
.case--full { grid-column: 1 / -1; }
.case__top { display: flex; align-items: center; gap: 10px; }
.case__brand { font-weight: 700; font-size: 18px; line-height: 1.3; }
.case__tag { white-space: nowrap; font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: -0.2px; color: var(--moss); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.case__panel { margin-top: 20px; height: 250px; border-radius: 20px; overflow: hidden; position: relative; display: flex; justify-content: center; align-items: flex-end; padding-inline: 32px; }
.case__panel > img.frame { width: 100%; max-width: 380px; height: 222px; object-fit: cover; object-position: top; border: 3px solid #fff; border-bottom: 0; border-radius: 10px 10px 0 0; }
.case--full .case__panel > img.frame { max-width: 826px; }
.case__screens { display: flex; align-items: flex-end; gap: 14px; height: 100%; padding-top: 28px; }
.case__screens img { width: 116px; height: 250px; object-fit: cover; object-position: top; border: 3px solid #fff; border-radius: 14px; margin-bottom: -28px; }
.case__screens img.raised { width: 128px; height: 284px; margin-bottom: -18px; }
.case__metric { margin-top: 28px; font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1.1; letter-spacing: -0.03em; }
.case__metric-label { margin-top: 4px; font-size: 18px; letter-spacing: -0.3px; color: var(--moss); }
.case__pill { margin-top: 20px; align-self: flex-start; font-weight: 700; font-size: 14px; line-height: 1.4; padding: 6px 12px; border-radius: 999px; color: #000; }
.case__how { margin-top: 16px; font-size: 20px; line-height: 1.4; letter-spacing: -0.3px; flex: 1; }
.case--full .case__how { max-width: 860px; }
.case__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.bg-sky { background: var(--sky); } .bg-mist { background: var(--mist); } .bg-butter { background: var(--butter); } .bg-blush { background: var(--blush); }
.cases__all { margin-top: 64px; display: flex; justify-content: center; }

/* Process */
.process__lede { margin-top: 28px; max-width: 768px; font-size: 24px; line-height: 1.4; letter-spacing: -0.5px; color: var(--moss); }
.steps { margin-top: 40px; display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 10px)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 10px)); padding-bottom: 8px; cursor: grab; }
.steps::-webkit-scrollbar { display: none; }
.steps.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.step { position: relative; flex: none; width: 600px; height: 308px; border-radius: 20px; padding: 64px 32px 32px; overflow: hidden; scroll-snap-align: start; background: linear-gradient(135deg, #D3E2F4 0%, #D9E6F3 60%, #E1EAF2 100%); }
.step h3 { font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.7px; }
.step p { margin-top: 14px; font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: -0.3px; color: var(--moss); max-width: 536px; }
.step__num { position: absolute; left: 32px; bottom: -48px; font-family: "Hanken Grotesk", var(--body); font-weight: 200; font-size: 128px; line-height: 1.2; letter-spacing: -1px; color: var(--evergreen); opacity: .14; }

/* Skills */
#skills, #faq { padding-top: 160px; }
.skills { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.skills li { background: var(--evergreen); color: #fff; border-radius: 8px; padding: 8px 12px; font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: -0.3px; }
.skills li.more { background: none; color: var(--moss); padding-inline: 16px; }

/* FAQ */
.faq { margin-top: 36px; }
.faq details:first-child summary { padding-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; cursor: pointer; font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.7px; color: var(--moss); transition: color 200ms var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--evergreen); }
.faq summary svg { flex: none; width: 24px; height: 24px; transition: transform 300ms var(--ease); }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq__a { padding: 0 64px 32px 0; max-width: 820px; font-size: 18px; line-height: 1.6; letter-spacing: -0.2px; color: var(--moss); }
.faq details[open] .faq__a { animation: fade-in 360ms var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contact */
.contact { padding-block: 180px 112px; }
.contact__grid { display: grid; grid-template-columns: 367px 593px; justify-content: space-between; align-items: start; }
.contact__grid .lede { margin-top: 16px; }
.form { background: var(--paper); border-radius: var(--r-md); padding: 40px; box-shadow: var(--shadow-raised); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Browser extensions (password managers, Grammarly) inject icons into labels; keep them out of the layout */
.field > :not(.field__label):not(input):not(textarea) { position: absolute; right: 12px; bottom: 14px; }
.field__label { font-weight: 700; font-size: 14px; line-height: 1.4; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--evergreen);
  background: var(--oat); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field input { height: 52px; margin: 0; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--oat) inset; -webkit-text-fill-color: var(--evergreen); }
.field textarea { min-height: 150px; resize: vertical; margin: 0; }
.field input::placeholder, .field textarea::placeholder { color: #7D8783; }
.field input:hover, .field textarea:hover { border-color: #D6CCBB; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--evergreen); background: var(--paper); }
.form__note { font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: -0.2px; color: var(--moss); }
.form .btn--kiln { justify-self: start; min-height: 50px; padding: 14px 28px; font-weight: 700; }
.form .btn--kiln[disabled] { opacity: .75; cursor: progress; transform: none; }
.form__status { font-size: 14px; color: var(--moss); min-height: 1em; }
.form__status.is-error { color: #A3361C; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { position: relative; color: #fff; padding-block: 110px 80px; background: linear-gradient(180deg, #000 0%, #0D1B18 55%, #15302A 100%); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/stars.svg") center top / 1200px auto repeat; opacity: .5; pointer-events: none; }
.footer .wrap { position: relative; }
.footer__title { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.2; letter-spacing: -0.04em; color: var(--oat); }
.footer .btn { margin-top: 48px; }
.footer__bottom { margin-top: 132px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-weight: 500; font-size: 14px; letter-spacing: -0.2px; }
.footer__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--sky); transition: color 200ms var(--ease); }
.footer__links a:hover { color: #fff; }

/* Floating resume chip */
.resume-chip { position: fixed; left: 20px; bottom: 66px; z-index: 40; background: #fff; color: var(--kiln); font-weight: 700; font-size: 14px; line-height: 1; padding: 11px 12px; border-radius: 8px; box-shadow: var(--shadow-floating); transition: transform 220ms var(--ease-spring); }
.resume-chip:hover { transform: translateY(-2px); }
.resume-chip:active { transform: scale(.96); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 45px 20px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(29,58,53,.45); backdrop-filter: blur(2px); animation: fade 260ms var(--ease); }
.modal__panel { position: relative; width: min(1120px, 100%); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); background: var(--oat); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); animation: pop 380ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; flex: none; }
.modal__head h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.3; letter-spacing: -0.03em; }
.modal__head p { margin-top: 4px; font-weight: 500; font-size: 14px; color: var(--evergreen); }
.modal__close { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-pill); flex: none; transition: transform 220ms var(--ease-spring); }
.modal__close:hover { transform: rotate(90deg); }
.modal__close:active { transform: scale(.92); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { overflow-y: auto; padding: 28px; display: grid; gap: 20px; overscroll-behavior: contain; }

.proj { display: grid; grid-template-columns: minmax(0, 550px) 1fr; gap: 32px; background: #FAF6EE; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.proj__media { display: flex; gap: 12px; align-items: flex-start; }
.proj__desk { flex: 1; height: 460px; border-radius: 12px; overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.proj__desk img { width: 100%; height: auto; }
.proj__phone { flex: none; width: 210px; height: 460px; border-radius: 26px; border: 5px solid var(--sky); background: #fff; overflow-y: auto; scrollbar-width: none; }
.proj__phone::-webkit-scrollbar { display: none; }
.proj__phone img { width: 100%; height: auto; }
.proj__info { padding: 16px 0; }
.proj__client { font-weight: 500; font-size: 16px; color: var(--moss); }
.proj__title { margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.3; letter-spacing: -0.03em; }
.proj__summary { margin-top: 16px; font-size: 18px; line-height: 1.4; }
.proj__label { margin-top: 20px; font-weight: 700; font-size: 16px; }
.proj__thought { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--moss); }
.proj__result { margin-top: 20px; border-radius: 16px; padding: 18px 16px; }
.proj__result b { display: block; font-size: 15px; }
.proj__result p { margin-top: 8px; font-size: 17px; line-height: 1.45; }
.proj__link { margin-top: 18px; display: inline-flex; gap: 6px; align-items: center; color: var(--kiln); font-weight: 500; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.proj__link:hover { color: var(--kiln-dark); }

.modal--resume .modal__panel { width: min(960px, 100%); background: #F4EEE4; }
.modal--resume .modal__head { background: var(--paper); border-bottom: 1px solid var(--line); }
.modal--resume .modal__head .actions { display: flex; gap: 12px; align-items: center; }
.modal--resume .modal__body { padding: 32px 70px; }
.modal--resume .modal__body img { width: 100%; border-radius: 6px; box-shadow: var(--shadow-raised); background: #fff; }
body.has-modal { overflow: hidden; }

/* ---------- Case pages ---------- */
.cs-hero { padding-top: 140px; }
.cs-col { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.cs-title { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.2; letter-spacing: -0.04em; max-width: 680px; }
.cs-intro { margin-top: 48px; font-size: 22px; line-height: 1.5; letter-spacing: -0.3px; color: var(--moss); }
.cs-cover { margin: 80px auto 0; max-width: 1000px; padding-inline: var(--gutter); }
.cs-cover img { width: 100%; border-radius: 20px; }
.cs-body { margin-top: 56px; display: grid; grid-template-columns: 200px 1fr; gap: 64px; max-width: calc(800px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.cs-meta { display: grid; gap: 28px; align-content: start; }
.cs-meta h4 { margin: 0; font-weight: 700; font-size: 18px; }
.cs-meta p { margin-top: 8px; font-size: 20px; line-height: 1.4; color: var(--moss); }
.cs-h2 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.2; letter-spacing: -0.04em; }
.cs-text p { margin-top: 24px; font-size: 20px; line-height: 1.5; letter-spacing: -0.2px; color: var(--moss); }
.cs-text .cs-h2 + p { margin-top: 24px; }
.cs-text .cs-h2:not(:first-child) { margin-top: 56px; }
.cs-text p b { color: var(--evergreen); font-weight: 700; }
.cs-stats { margin: 80px auto 0; max-width: calc(800px + var(--gutter) * 2); padding-inline: calc(var(--gutter) + 0px); display: flex; gap: 48px; flex-wrap: wrap; list-style: none; }
.cs-stats li { min-width: 200px; }
.cs-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.2; letter-spacing: -0.03em; }
.cs-stats span { display: block; margin-top: 12px; font-size: 14px; color: var(--moss); max-width: 220px; }
.cs-pair { margin: 64px auto 0; max-width: calc(1016px + var(--gutter) * 2); padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cs-pair img, .cs-wide img { width: 100%; border-radius: 16px; }
.cs-wide { margin: 64px auto 0; max-width: calc(1016px + var(--gutter) * 2); padding-inline: var(--gutter); }
.cs-section { margin: 80px auto 0; }
.cs-list p { margin-top: 48px; }
.cs-list p:first-of-type { margin-top: 24px; }
.cs-end { padding-bottom: 96px; }
.cs-ticker { margin-top: 80px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 200px var(--gutter) 120px; }
.notfound b { display: block; font-family: var(--display); font-weight: 400; font-size: 160px; line-height: 1; letter-spacing: -0.04em; color: var(--clay); }
.notfound p { margin: 24px auto 40px; max-width: 420px; font-size: 20px; color: var(--moss); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__photo { width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .proj { grid-template-columns: 1fr; }
}

@media (max-width: 809px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .nav__bar { height: 84px; }
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 16px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-floating); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 220ms var(--ease), transform 260ms var(--ease), visibility 0s 260ms; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 220ms var(--ease), transform 260ms var(--ease); }
  .nav__links a:not(.btn) { display: block; padding: 10px 16px; font-weight: 400; font-size: 20px; color: var(--moss); text-align: center; }
  .nav__links .btn { margin-top: 8px; }

  .hero { padding-top: 140px; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__title { font-size: 40px; letter-spacing: -0.02em; }
  .hero__lede { margin-top: 22px; font-size: 18px; }
  .hero__ctas { flex-direction: column; align-items: center; margin-top: 32px; gap: 12px; }
  .hero__photo { max-width: 327px; margin: 0 auto; }
  .ticker { margin-top: 56px; }

  .h-section { font-size: 30px; letter-spacing: -0.02em; }
  .section { padding-top: 80px; }
  .bento, .cases { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; padding: 40px 28px; min-height: 640px; }
  .tile { padding: 40px 28px; }
  .tile__title { font-size: 26px; }
  .tile__get p { font-size: 13px; }
  .tile--wide { min-height: 0; }
  .tile--wide .tile__get { margin-top: 32px; }
  .peek--fa { position: relative; right: auto; bottom: auto; width: 280px; height: 218px; margin: 48px -56px -56px auto; }
  .case { padding: 22px; }
  .case__panel { height: 210px; padding-inline: 16px; }
  .case__panel > img.frame { height: 186px; }
  .case__screens { gap: 8px; }
  .case__screens img { width: 84px; height: 180px; }
  .case__screens img.raised { width: 92px; height: 204px; }
  .case__metric { font-size: 48px; }
  .case__how { font-size: 18px; }

  .process__lede { font-size: 20px; }
  .steps { gap: 16px; }
  .step { width: calc(100vw - 48px); height: auto; min-height: 380px; padding: 32px 32px 104px; }
  .step h3 { font-size: 24px; }
  .step__num { left: 50%; transform: translateX(-50%); }
  .skills { gap: 8px; }
  .skills li { font-size: 16px; }
  .faq summary { font-size: 22px; letter-spacing: -0.5px; padding: 24px 0; }
  .faq__a { padding-right: 0; font-size: 17px; }
  .contact { padding-block: 80px; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .footer { padding-block: 112px 40px; }
  .footer__title { font-size: 36px; letter-spacing: -0.01em; }
  .footer__bottom { margin-top: 80px; flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .resume-chip { bottom: 20px; left: 16px; }

  .modal { padding: 16px 0 0; align-items: end; }
  .modal__panel { border-radius: 24px 24px 0 0; max-height: calc(100dvh - 16px); }
  .modal__head { padding: 20px; align-items: flex-start; }
  .modal__head h2 { font-size: 26px; }
  .modal__body { padding: 16px; }
  .proj { padding: 14px; gap: 16px; }
  .proj__media { flex-direction: column; align-items: stretch; }
  .proj__desk { height: 300px; flex: none; }
  .proj__phone { width: 220px; height: 440px; align-self: center; }
  .proj__title { font-size: 26px; }
  .modal--resume .modal__body { padding: 16px; }
  .modal--resume .modal__head { align-items: center; }

  .cs-hero { padding-top: 120px; }
  .cs-title { font-size: 36px; letter-spacing: -0.02em; }
  .cs-intro { margin-top: 28px; font-size: 18px; }
  .cs-cover { margin-top: 48px; }
  .cs-body { grid-template-columns: 1fr; gap: 40px; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-meta p { font-size: 17px; }
  .cs-h2 { font-size: 30px; }
  .cs-text p { font-size: 18px; }
  .cs-stats { gap: 28px; }
  .cs-pair { grid-template-columns: 1fr; }
  .notfound b { font-size: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
}

/* Cropped case images (source images are 4:3, frames are wider) */
.cs-crop img { aspect-ratio: 1000 / 530; object-fit: cover; object-position: top center; border-radius: 20px; }
.cs-pair.cs-crop img { aspect-ratio: 493 / 537; border-radius: 16px; }
.cs-meta a { color: var(--kiln); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.cs-meta a:hover { color: var(--kiln-dark); }
.cs-quote { margin: 40px 0 0; }
.cs-quote p { margin-top: 0; font-family: var(--display); font-size: 22px; line-height: 1.5; color: var(--evergreen); }
.cs-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--moss); }
