@font-face{font-family:Instrument Sans;src:url('./fonts/instrument-sans-latin-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Instrument Sans;src:url('./fonts/instrument-sans-latin-600-normal.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Instrument Serif;src:url('./fonts/instrument-serif-latin-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{--paper:#f5f4ef;--ink:#172329;--muted:#5b6466;--line:#d6d9d3;--blue:#073b5c;--serif:'Instrument Serif',Georgia,serif;--sans:'Instrument Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-family:var(--sans);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;line-height:1.6;font-size:16px}::selection{background:#bddedb;color:#102d3a}a{color:inherit;text-underline-offset:5px;text-decoration-thickness:1px}a:hover{color:#24657b}a:focus-visible{outline:2px solid #197792;outline-offset:6px}img{max-width:100%}p,h1,h2,h3,h4,figure{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}.wrap{max-width:1352px;margin-inline:auto;padding-inline:64px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:29px}.wordmark{font-size:19px;letter-spacing:-.045em;font-weight:600;text-decoration:none}.site-header nav{display:flex;gap:30px;align-items:center;font-size:13px}.site-header nav a{padding-block:10px;text-decoration:none}.header-contact{margin-left:26px}.header-contact span{margin-left:10px}
.hero-poster{position:relative;aspect-ratio:1634/608;background:#020d27;overflow:hidden;color:#fff}.identity-art{display:block;width:100%;height:100%;object-fit:cover}.poster-top{position:absolute;top:29px;left:35px;right:35px;display:flex;justify-content:space-between;gap:18px;font-size:12px;color:#fff;text-shadow:0 1px 8px #001027}.hero-poster h1{position:absolute;bottom:28px;left:35px;right:28px;font-family:var(--serif);font-size:clamp(56px,7.2vw,100px);font-weight:400;letter-spacing:-.038em;line-height:1.05}.intro{display:flex;align-items:flex-start;justify-content:space-between;gap:50px;padding-block:33px 55px}.intro-copy{max-width:650px}.intro-copy>p:first-child{font-size:23px;line-height:1.5;letter-spacing:-.035em}.intro-detail{font-size:14px;color:var(--muted);margin-top:14px}.intro-links{display:grid;grid-template-columns:auto auto;gap:11px 26px;font-size:13px;padding-top:7px;flex-shrink:0}.intro-links a{padding-block:4px}.file-type{color:var(--muted);font-size:10px;margin-left:4px}
.work{padding-top:25px;padding-bottom:90px;scroll-margin-top:25px}.section-heading{border-top:1px solid var(--line);display:flex;align-items:baseline;justify-content:space-between;padding-block:29px 27px;gap:20px}.section-heading h2{font-family:var(--serif);font-size:36px;font-weight:400;line-height:1.2;letter-spacing:-.025em}.section-heading>p{font-size:12px;color:var(--muted)}.showcase{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);column-gap:49px;align-items:center;scroll-margin-top:28px}.surfay-stage{padding:24px;background:#e8e1d0;min-width:0;align-self:center;display:flex;flex-direction:column;justify-content:center}.stage-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px}.surfay-wordmark{font-family:var(--serif);font-size:33px;color:#383027;letter-spacing:-.04em}.stage-label>span:last-child{font-size:11px;color:#635b50}.product-frame{display:block;overflow:hidden;box-shadow:0 8px 30px #5d4f3822;border:1px solid #c5bca8;background:#eee6d5}.product-frame img{display:block;width:100%;height:auto;transition:transform .35s cubic-bezier(.2,.7,.3,1)}.product-frame:hover img{transform:scale(1.018)}.stage-caption{font-size:10px;color:#645b4d;margin-top:18px}.showcase-copy{padding-block:8px}.project-context{font-size:11px;color:var(--muted)}.showcase-copy h3{font-family:var(--serif);font-weight:400;font-size:clamp(40px,4.2vw,60px);line-height:1.05;letter-spacing:-.035em;margin-block:16px 20px}.showcase-copy>p:not(.project-context){font-size:14px;line-height:1.65}.showcase-copy .technical-detail{margin-top:13px;color:var(--muted)}.showcase-copy .stack{margin-top:20px;font-size:11px;color:var(--muted);line-height:1.7}.project-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:22px;font-size:13px}.project-links a{padding-block:3px}.showcase-copy .project-limit{font-size:11px;line-height:1.55;color:var(--muted);margin-top:20px;max-width:34ch}.map-credit{grid-column:1 / -1;font-size:10px;line-height:1.6;color:var(--muted);margin-top:14px}.map-credit a{margin-left:8px}.other-work{margin-top:52px}.project-row{display:grid;grid-template-columns:minmax(160px,.85fr) minmax(0,1.6fr) auto;gap:35px;align-items:center;padding-block:30px;border-top:1px solid var(--line);scroll-margin-top:20px}.project-identity h3{font-family:var(--serif);font-size:36px;font-weight:400;letter-spacing:-.035em;margin-top:5px}.project-description>p:first-child{font-size:14px;max-width:58ch}.stack{font-size:11px;color:var(--muted);margin-top:12px}.row-link{font-size:12px;white-space:nowrap;padding-block:10px}
.background{position:relative;isolation:isolate;overflow:clip;background:#e9ece7}
.background::before{content:'';position:absolute;z-index:-1;pointer-events:none;width:min(1000px,110vw);height:850px;left:-10%;top:-120px;background:radial-gradient(ellipse at 45% 45%,#79aaa52b 0%,#92bab51a 30%,#92bab500 68%);transform:translate(-5%,-4%);animation:background-drift 28s ease-in-out infinite alternate;animation-play-state:paused}
.background.ambient-running::before{animation-play-state:running}
@keyframes background-drift{to{transform:translate(35%,18%)}}
.background-grain::before{display:none}
.background-grain .about-intro :is(.section-kicker,.languages){color:color-mix(in srgb,var(--muted) 60%,var(--ink))}
.background-light{display:none}
.background-grain .background-light {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 49%;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
  background:
    radial-gradient(ellipse 89% 50% at 33% 36%, #548e9a2e, #79aaa523 52%, transparent),
    radial-gradient(ellipse 68% 38% at 18% 59%, #92bab516, transparent);
  mask-image: linear-gradient(to right, #000 70%, transparent);
}
.background-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./img/about-highlight.svg') center 42% / 112% auto no-repeat;
  translate: var(--background-pointer, 0 0);
  transform: translate(-6px, -4px) rotate(-1deg);
  animation: background-light-drift 32s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.background.ambient-running .background-light::before {
  animation-play-state: running;
  transition: translate 900ms ease-out;
}
@keyframes background-light-drift{to{transform:translate(10px,6px) rotate(1.5deg)}}
.background-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('./img/about-grain.svg') repeat;
  opacity: .38;
  mask-image:
    radial-gradient(ellipse 18% 10% at 0 0, #000c, transparent),
    radial-gradient(ellipse 35% 36% at 8% 95%, #0008, transparent),
    radial-gradient(ellipse 46% 56% at 0 42%, #0007, transparent);
}
@media(max-width:760px){
  .background::before{width:145vw;height:700px;left:-30%;top:0}
  .background-grain .background-light {
    inset: 0 0 auto;
    width: 100%;
    height: min(36%, 355px);
    mask-image: linear-gradient(#000 55%, transparent);
  }
  .background-light::before{background-position:center 25%}
  .background-grain::after {
    mask-image:
      radial-gradient(ellipse 26% 4% at 0 0, #000, transparent),
      radial-gradient(ellipse 51% 16% at 100% 0, #000, transparent);
  }
}
@media(prefers-reduced-motion:reduce){
  .background::before,.background-light::before{animation:none;translate:none}
}
@media print{.background::before,.background-grain .background-light,.background-grain::after{display:none}}
.background-inner{display:grid;grid-template-columns:1fr 1.15fr;gap:105px;padding-block:78px 85px;scroll-margin-top:0}.section-kicker{font-size:11px;color:var(--muted);margin-bottom:18px}.about-intro h2{font-family:var(--serif);font-size:clamp(38px,4.2vw,59px);font-weight:400;letter-spacing:-.035em;line-height:1.1;margin-bottom:25px}.about-intro>p:not(.section-kicker){font-size:15px;max-width:35ch;margin-top:18px}.about-intro .languages{font-size:11px;color:var(--muted);margin-top:27px}.background-entry+.background-entry{margin-top:28px;padding-top:25px;border-top:1px solid #cbd1ca}.background-entry h3{font-size:16px;font-weight:600;letter-spacing:-.02em}.entry-heading{display:flex;justify-content:space-between;gap:20px;align-items:baseline}.entry-heading>p{font-size:11px;color:var(--muted);white-space:nowrap}.role{font-size:13px;margin-top:3px}.employment{font-size:11px;color:var(--muted);margin-top:10px}.background-entry ul{font-size:13px;padding-left:16px;margin:14px 0 0}.background-entry li{padding-left:3px;margin-top:7px}.education-item{margin-top:16px}.education-item h4{font-size:13px;font-weight:400}.education-item>p,.background-entry>p:not(.role):not(.employment){font-size:12px;color:var(--muted);margin-top:5px;max-width:58ch}.footer{padding-block:62px 70px;display:flex;justify-content:space-between;gap:40px;align-items:flex-end}.footer h2{font-family:var(--serif);font-size:61px;font-weight:400;letter-spacing:-.04em;line-height:1;margin-bottom:21px}.contact-link{font-size:20px;letter-spacing:-.025em;overflow-wrap:anywhere}.contact-link span{font-size:17px;margin-left:12px}.footer-links{display:grid;grid-template-columns:auto auto auto;gap:20px;font-size:12px;align-items:center}.footer-links p{grid-column:1 / -1;font-size:11px;color:var(--muted);text-align:right;margin-top:10px}.skip-link{position:absolute;left:15px;top:-80px;z-index:3;padding:10px 16px;background:var(--paper)}.skip-link:focus{top:10px}
/* An alternative composition, kept separate from the main design. */
.direction-b{--paper:#071421;--ink:#f1f1e9;--muted:#a4b4bd;--line:#2b3b47;color:var(--ink);background:var(--paper);color-scheme:dark}.direction-b .hero{display:grid;grid-template-columns:1.35fr 1fr;gap:50px;align-items:center;padding-top:32px;padding-bottom:60px}.direction-b .hero-poster{aspect-ratio:1.3;min-height:395px}.direction-b .identity-art{object-position:70% center}.direction-b .hero-poster h1{font-size:64px;max-width:8ch;line-height:1.04}.direction-b .poster-top{font-size:10px}.direction-b .poster-top p:last-child{display:none}.direction-b .intro{display:block;padding:0}.direction-b .intro-copy>p:first-child{font-family:var(--serif);font-size:38px;letter-spacing:-.025em;line-height:1.2}.direction-b .intro-copy>p:first-child br{display:none}.direction-b .intro-detail{margin-top:22px;line-height:1.7}.direction-b .intro-links{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px 24px}.direction-b .showcase{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);column-gap:70px}.direction-b .surfay-stage{grid-column:2;grid-row:1}.direction-b .showcase-copy{grid-column:1;grid-row:1}.direction-b .background{background:#0c1d2b}.direction-b .background-entry+.background-entry{border-color:var(--line)}.direction-b a:hover{color:#a2e4e4}
@media(min-width:1500px){.hero-poster h1{font-size:100px}}
@media(max-width:1050px){.wrap{padding-inline:40px}.showcase{column-gap:32px;grid-template-columns:1.35fr 1fr}.showcase-copy h3{font-size:45px}.project-row{grid-template-columns:180px 1fr;gap:20px 28px}.row-link{grid-column:2;justify-self:start;padding:0}.background-inner{gap:65px}.intro-copy>p:first-child{font-size:20px}.footer-links{gap:16px}.contact-link{font-size:18px}.direction-b .hero{gap:30px}.direction-b .hero-poster h1{font-size:50px}.direction-b .intro-copy>p:first-child{font-size:30px}.direction-b .showcase{gap:35px}}
@media(max-width:960px){.showcase,.direction-b .showcase{grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}.surfay-stage{width:100%}.showcase-copy{max-width:60ch;padding:0}.showcase-copy h3 br{display:none}.project-links{flex-direction:row;flex-wrap:wrap;gap:8px 24px}.direction-b .surfay-stage,.direction-b .showcase-copy{grid-column:1;grid-row:auto}.direction-b .surfay-stage{grid-row:1}}
@media(max-width:760px){.wrap{padding-inline:24px}.site-header{padding-block:19px;gap:15px}.wordmark{font-size:16px}.site-header nav{gap:18px;font-size:12px}.header-contact{display:none}.hero-poster{aspect-ratio:1.55}.identity-art{object-position:65% center}.poster-top{left:20px;right:20px;top:20px;font-size:10px}.poster-top p:last-child{display:none}.hero-poster h1{font-size:clamp(42px,8.5vw,63px);left:20px;right:16px;bottom:22px;letter-spacing:-.04em}.intro{display:block;padding-block:26px 37px}.intro-copy>p:first-child{font-size:20px;line-height:1.5}.intro-copy>p:first-child br{display:none}.intro-detail{font-size:13px;line-height:1.6}.intro-links{display:flex;flex-wrap:wrap;gap:10px 23px;margin-top:18px;padding:0;font-size:12px}.work{padding-top:5px;padding-bottom:48px}.section-heading{padding-block:22px}.section-heading h2{font-size:30px}.section-heading>p{display:none}.showcase{grid-template-columns:1fr;gap:0}.surfay-stage{padding:18px 12px 12px}.stage-label{margin-bottom:17px}.surfay-wordmark{font-size:29px}.stage-caption{font-size:9px;margin-top:14px}.showcase-copy{padding:25px 0 0}.showcase-copy h3{font-size:43px;margin-block:12px 15px}.showcase-copy h3 br{display:none}.showcase-copy>p:not(.project-context){font-size:14px;max-width:55ch}.showcase-copy .stack{font-size:11px}.project-links{flex-direction:row;flex-wrap:wrap;gap:8px 24px;margin-top:18px}.showcase-copy .project-limit{font-size:11px;max-width:48ch;margin-top:15px}.map-credit{font-size:9px;margin-top:18px}.map-credit a{display:block;margin:5px 0 0}.other-work{margin-top:30px}.project-row{grid-template-columns:1fr;gap:12px;padding-block:25px}.project-identity h3{font-size:32px}.project-context{font-size:10px}.row-link{grid-column:1;margin-top:3px}.project-description>p:first-child{font-size:14px}.background-inner{grid-template-columns:1fr;gap:40px;padding-block:43px 49px}.about-intro h2{font-size:43px;margin-bottom:18px}.about-intro>p:not(.section-kicker){font-size:14px;max-width:45ch}.about-intro .languages{font-size:11px}.footer{padding-block:40px 45px;display:block}.footer h2{font-size:48px}.contact-link{font-size:clamp(15px,4.4vw,20px)}.footer-links{margin-top:30px;display:flex;flex-wrap:wrap;gap:17px}.footer-links p{width:100%;text-align:left;margin-top:0}.direction-b .hero{display:block;padding-top:0;padding-bottom:30px}.direction-b .hero-poster{aspect-ratio:1.55;min-height:0}.direction-b .hero-poster h1{max-width:none;font-size:clamp(42px,8.5vw,63px)}.direction-b .intro{padding-block:26px 0}.direction-b .intro-copy>p:first-child{font-size:29px}.direction-b .showcase{display:flex;flex-direction:column;gap:0;align-items:stretch}.direction-b .map-credit{order:3}}
/* Contact: the same paper, serif and blue as the rest of the portfolio. */
.contact-footer {
  --contact-accent: #146379;
  --contact-ease: cubic-bezier(.22, 1, .36, 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px 105px;
  align-items: start;
  padding-block: 62px 38px;
  scroll-margin-top: 30px;
}
.contact-intro .section-kicker { margin-bottom: 18px; }
.contact-footer h2 { font-size: 61px; line-height: 1; letter-spacing: -.04em; margin-bottom: 21px; }
.contact-intro > p:not(.section-kicker) { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 30ch; }
.contact-alternative { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; margin-top: 30px; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid #abb8b3; transition: color 180ms, border-color 180ms; }
.contact-alternative > [aria-hidden] { transition: transform 280ms var(--contact-ease); }
.contact-alternative:hover { border-color: var(--contact-accent); }
.contact-alternative:hover > [aria-hidden] { transform: translate(3px, -3px); }
.contact-email { position: relative; gap: 10px; max-width: 100%; min-height: 44px; margin-top: 22px; padding-block: 8px; border-bottom: 0; font-size: clamp(16px, 1.65vw, 20px); letter-spacing: -.025em; line-height: 1.5; }
.contact-email-address { min-width: 0; overflow-wrap: anywhere; }
.contact-email > [aria-hidden] { flex: none; font-size: 16px; }
.contact-email::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; pointer-events: none; transform: scaleX(0); transform-origin: center; transition: transform 260ms var(--contact-ease); }
.contact-email:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.contact-form { min-width: 0; }
.contact-field { margin-bottom: 22px; }
.contact-input-shell > label { position: absolute; top: 19px; left: 16px; margin: 0; color: var(--muted); font: 16px/20px var(--sans); transform-origin: left top; pointer-events: none; transition: transform 240ms var(--contact-ease), color 180ms; }
.contact-input-shell:focus-within > label,
.contact-input-shell > input:not(:placeholder-shown) + label,
.contact-input-shell > textarea:not(:placeholder-shown) + label { transform: translateY(-12px) scale(.75); }
.contact-input-shell:focus-within > label { color: var(--contact-accent); }
.contact-input-shell { position: relative; }
.contact-input-shell::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--contact-accent); opacity: 0; transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--contact-ease); pointer-events: none; }
.contact-input-shell:focus-within::after { opacity: 1; transform: scaleX(1); }
.contact-field input, .contact-field textarea { display: block; width: 100%; margin: 0; border: 1px solid #7f8d87; border-radius: 2px; background: #fbfbf7; color: var(--ink); font: 16px/1.5 var(--sans); min-height: 64px; padding: 26px 15px 10px; box-shadow: none; transition: background-color 180ms, border-color 180ms; }
.contact-field textarea { resize: vertical; min-height: 156px; padding-top: 30px; }
.contact-field input:hover, .contact-field textarea:hover { border-color: #4c6a63; }
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--contact-accent); outline-offset: 2px; border-color: var(--contact-accent); background: #fff; box-shadow: 0 0 0 5px #dce9e3; }
.contact-field input:disabled, .contact-field textarea:disabled { opacity: .75; }
.contact-field [aria-invalid="true"] { border-color: #8b392b; }
.contact-field-error { font-size: 12px; line-height: 1.5; color: #8b392b; margin-top: 8px; }
.contact-field-error[hidden] { display: none; }
.contact-message-field { margin-bottom: 24px; }
.contact-verification { max-width: 300px; width: 100%; }
.contact-verification.is-interactive { margin-bottom: 20px; }
.contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.contact-submit button { display: inline-flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 26px; min-width: 192px; min-height: 54px; padding: 15px 19px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; font: 13px/1.5 var(--sans); cursor: pointer; transition: background-color 200ms, border-color 200ms, color 200ms, box-shadow 220ms, transform 260ms var(--contact-ease); }
.contact-submit button:hover:not(:disabled) { background: #155c6a; border-color: #155c6a; box-shadow: 0 4px 12px #073b5c14; transform: translateY(-1px); }
.contact-submit button:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.contact-submit button:disabled { background: #dce3de; color: #52635a; border-color: #a8b7ae; cursor: default; }
.contact-submit button:focus-visible { outline: 2px solid var(--contact-accent); outline-offset: 4px; }
.contact-button-icon { position: relative; display: grid; place-items: center; width: 18px; height: 18px; }
.contact-button-icon svg { position: absolute; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--contact-ease), opacity 180ms; }
.contact-submit button:hover:not(:disabled) .contact-arrow { transform: translate(2px, -2px); }
.contact-check { opacity: 0; transform: translateY(4px); }
.contact-spinner { display: none; width: 16px; height: 16px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.contact-form[data-state="sending"] .contact-arrow { opacity: 0; }
.contact-form[data-state="sending"] .contact-spinner { display: block; animation: contact-spin 900ms linear infinite; }
.contact-form[data-state="success"] button { background: #e1ebe3; border-color: #839d8d; color: #245c44; }
.contact-form[data-state="success"] .contact-arrow { opacity: 0; transform: translate(3px, -3px); }
.contact-form[data-state="success"] .contact-check { opacity: 1; transform: none; }
.contact-form[data-state="success"] .contact-check path { stroke-dasharray: 22; animation: contact-check-draw 420ms var(--contact-ease) both; }
.contact-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.contact-status { flex: 1 1 190px; min-width: 0; font-size: 12px; line-height: 1.55; margin: 0; padding-left: 12px; border-left: 2px solid #a7bfb4; color: var(--muted); transition: opacity 180ms, border-color 180ms; }
.contact-status:empty { opacity: 0; border-color: transparent; }
.contact-status[data-state="error"] { color: #8b392b; border-color: #b27968; }
.contact-status[data-state="verification"] { color: var(--contact-accent); border-color: #7caaa8; }
.contact-status[data-state="success"] { color: #245c44; border-color: #5d8971; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-footer > .footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 0; }
.contact-footer > .footer-links p { margin: 0 0 0 auto; }
.contact-footer > .footer-links .footer-meta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.contact-footer > .footer-links .footer-meta p { width: auto; margin: 0; white-space: nowrap; }
.footer-meta .footer-privacy { color: var(--muted); font-size: 11px; text-decoration: none; }
.footer-meta .footer-privacy:hover { color: var(--ink); }
.footer-preferences { display: flex; align-items: center; gap: 18px; }
.footer-preferences .footer-privacy, .footer-motion-toggle { display: inline-flex; align-items: center; min-height: 44px; }
.footer-motion-toggle { padding: 0; border: 0; background: transparent; color: var(--muted); font: 11px/1.6 var(--sans); cursor: pointer; white-space: nowrap; }
.footer-motion-toggle:hover { color: var(--ink); }
.footer-motion-toggle:focus-visible { outline: 2px solid var(--contact-accent); outline-offset: 4px; }
.footer-motion-toggle[hidden] { display: none; }

@keyframes contact-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes contact-spin { to { transform: rotate(360deg); } }
@keyframes contact-check-draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .contact-entered .contact-intro { animation: contact-arrive 650ms var(--contact-ease) both; }
  .contact-entered .contact-field { animation: contact-arrive 550ms 90ms var(--contact-ease) both; }
  .contact-entered .contact-field:nth-of-type(2) { animation-delay: 140ms; }
  .contact-entered .contact-field:nth-of-type(3) { animation-delay: 190ms; }
  .contact-entered .contact-submit { animation: contact-arrive 550ms 240ms var(--contact-ease) both; }
}
@media (max-width: 1050px) { .contact-footer { column-gap: 65px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
@media (max-width: 760px) {
  .contact-footer { display: grid; grid-template-columns: 1fr; gap: 38px; padding-block: 48px 30px; }
  .contact-footer h2 { font-size: 48px; margin-bottom: 21px; }
  .contact-intro .section-kicker { margin-bottom: 18px; }
  .contact-intro > p:not(.section-kicker) { font-size: 14px; }
  .contact-alternative { margin-top: 20px; }
  .contact-field { margin-bottom: 20px; }
  .contact-footer > .footer-links { justify-content: flex-start; padding-top: 22px; }
  .contact-footer > .footer-links p { width: 100%; margin: 0; }
  .contact-footer > .footer-links .footer-meta { flex-basis: 100%; flex-wrap: wrap; margin-left: 0; }
  .contact-submit { align-items: stretch; flex-direction: column; gap: 12px; }
  .contact-submit button { width: 100%; }
  .contact-status { flex: none; }
  .contact-status:empty { display: none; }
}
@media (max-width: 420px) {
  .contact-submit button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-footer *, .contact-footer *::before, .contact-footer *::after { animation: none !important; transition: none !important; }
  .contact-submit button:hover:not(:disabled), .contact-alternative:hover > [aria-hidden], .contact-submit button:hover:not(:disabled) .contact-arrow { transform: none; }
}
@media(max-width:360px){.wrap{padding-inline:18px}.site-header nav{gap:12px}.wordmark{font-size:15px}.hero-poster h1{font-size:38px;left:17px}.poster-top{left:17px}.intro-links{gap:10px 18px}.contact-link span{margin-left:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.product-frame img{transition:none}.product-frame:hover img{transform:none}}
@media print{.site-header,.hero-poster,.surfay-stage,.map-credit,.footer,.skip-link{display:none}body,.direction-b{--paper:white;--ink:#111;--muted:#444;--line:#bbb;color:#111;background:white;font-size:10pt}.wrap{padding:0;max-width:none}.hero,.direction-b .hero{display:block;padding:0}.intro{padding:0 0 15px}.intro-copy>p:first-child{font-size:14pt}.work{padding:0}.section-heading{padding:15px 0}.showcase,.direction-b .showcase{display:block}.showcase-copy h3{font-size:24pt}.project-row{padding:15px 0}.background{background:white}.background-inner{padding:20px 0;gap:35px}.about-intro h2{font-size:24pt}.background-entry{break-inside:avoid}}

/* The original image remains the no-JS and reduced-motion fallback. */
.identity-motion{position:absolute;inset:0;width:100%;height:100%;display:none;pointer-events:none}.motion-ready .identity-motion{display:block}
@media(prefers-reduced-motion:reduce){.identity-motion{display:none!important}}
@media print{.identity-motion{display:none!important}}

/* Horizontal play shares the hero with native vertical scrolling and pinch zoom. */
.motion-ready{touch-action:pan-y pinch-zoom}.touch-hint{display:none;position:absolute;left:20px;bottom:7px;font-size:9px;line-height:1.3;color:#ffffffb8;pointer-events:none}
@media(max-width:760px),(pointer:coarse){.motion-ready:not(.motion-paused) .touch-hint{display:block}}
@media(prefers-reduced-motion:reduce){.touch-hint{display:none!important}}

/* Project artwork and concise copy share an editorial card. */
.work-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; border: 1px solid var(--line); background: #fbfaf6; scroll-margin-top: 28px; }
.work-card-art { display: block; width: 100%; height: auto; }
.work--cards { container: selected-work / inline-size; }
.work-cards { display: grid; gap: 20px; }
.work-card-copy { padding: clamp(24px, 3vw, 44px); }
.work-card-copy h3, .surfay-project-page h1 { font: 400 clamp(40px, 4.3vw, 63px)/.98 var(--serif); letter-spacing: -.035em; }
.work-card-copy p { max-width: 33ch; margin: 16px 0 22px; font-size: 15px; }
.work-card-link { display: inline-block; min-height: 44px; padding-block: 10px; font-size: 13px; }
.surfay-project-page { max-width: 820px; padding-block: clamp(32px, 7vw, 88px); }
.surfay-project-back { display: inline-block; margin-bottom: 32px; font-size: 14px; }
.surfay-project-page p { margin-top: 16px; }
.surfay-project-page .project-links { flex-flow: row wrap; }
/* Show the overflow controls appropriate to the width. */
.work-controls, .work-dots { display: none; }
@media (width < 600px) {
  .work-cards {
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 320px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    gap: 14px;
  }
  .work-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
    scroll-snap-align: center;
  }
  .work-card:first-child { scroll-snap-align: start; }
  .work-card:last-child:not(:first-child) { scroll-snap-align: end; }
  .work-card-copy { display: flex; flex-direction: column; padding: 16px 16px 12px; }
  .work-card-copy h3 { font-size: clamp(27px, 7vw, 33px); }
  .work-card-copy p { font-size: 14px; line-height: 1.45; margin: 8px 0 10px; }
  .work-card-link { margin-top: auto; align-self: flex-start; }
  .work-card-link:focus-visible { outline-offset: 2px; }
  .work--cards .section-heading { gap: 8px; }
  .work-dots:not([hidden]) { position: relative; display: flex; justify-content: center; margin-top: 2px; }
  .work-dots button {
    width: 44px; height: 44px; padding: 0; border: 0;
    background: transparent; display: grid; place-items: center; cursor: pointer;
  }
  .work-dots button::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  }
  .work-dots::after {
    content: ""; position: absolute; top: calc(50% - 3.5px); left: calc(50% - 53px);
    width: 18px; height: 7px; border-radius: 5px; background: var(--blue);
    transform: translateX(calc(var(--dot-position, 0) * 44px));
    pointer-events: none;
  }
  .work-dots button:focus-visible { outline: 2px solid #197792; outline-offset: -3px; }
}

.work-rail { position: relative; --work-edge-fade: 20px; }
.work-rail:is([data-more-left], [data-more-right]) > .work-cards { scrollbar-width: none; }
.work-rail[data-more-left]::before, .work-rail[data-more-right]::after {
  content: ""; position: absolute; z-index: 1; inset-block: 0;
  width: var(--work-edge-fade); pointer-events: none;
}
.work-rail[data-more-left]::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.work-rail[data-more-right]::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
.work-controls button {
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 18px var(--sans); cursor: pointer;
}
.work-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
.work-controls button:not([aria-disabled="true"]):hover { background: #fbfaf6; }
.work-controls button:focus-visible, .work-cards:focus-visible { outline: 2px solid #197792; outline-offset: 2px; }
@media (width >= 600px) {
  .work-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; }
  .work-card-copy { display: flex; flex-direction: column; padding: 24px; }
  .work-card-copy h3 { font-size: 36px; }
  .work-card-copy p { margin: 12px 0 14px; font-size: 14px; line-height: 1.5; }
  .work-card-link { align-self: flex-start; margin-top: auto; }
  @container selected-work (width < 960px) {
    .work--cards .section-heading:has(.work-controls:not([hidden])) > p { display: none; }
    .work-controls:not([hidden]) { display: flex; gap: 8px; }
    .work-cards {
      grid-auto-flow: column;
      grid-auto-columns: clamp(272px, calc((100% - 68px) / 2), 350px);
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: thin;
    }
    .work-rail { --work-edge-fade: clamp(22px, 4vw, 38px); }
    .work-card { scroll-snap-align: start; }
    .work-card-copy { padding: 18px; }
    .work-card-copy h3 { font-size: 32px; }
    .work-card-link:focus-visible { outline-offset: 2px; }
  }
  @container selected-work (min-width: 960px) {
    .work-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
}

/* The poster sits still while the surfer and board respond to the pointer. */
.surfay-banner { aspect-ratio: 900/523; background: #f4ebd8; }
.surfay-art { display: block; width: 100%; height: 100%; }
:is(.surfay-rider, .project-art-motion) { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) :is(.surfay-rider, .project-art-motion) {
    transform: var(--project-art-transform, none);
    transition: transform 720ms cubic-bezier(.22, 1, .36, 1);
  }
}

/* The footer preference stops decoration without hiding contact feedback/content. */
html.motion-paused, html.motion-paused * { scroll-behavior: auto !important; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
html.motion-settled .contact-intro, html.motion-settled .contact-field, html.motion-settled .contact-submit { animation: none !important; }
html.motion-paused .contact-check path { animation: none !important; stroke-dashoffset: 0; }
html.motion-paused .product-frame:is(:hover, :focus-visible) img,
html.motion-paused .contact-submit button:hover:not(:disabled),
html.motion-paused .contact-alternative:hover > [aria-hidden],
html.motion-paused .contact-submit button:hover:not(:disabled) .contact-arrow { transform: none; }
