:root {
  --paper: #f5f3ee;
  --ink: #272823;
  --muted: #6c6c65;
  --blue: #2447ee;
  --line: #d6d4cd;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(24px, 4.4vw, 72px);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button, a, img { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
::selection { background: var(--blue); color: white; }
img { display: block; width: 100%; height: auto; }
svg { display: block; }
p, h1, h2, h3 { margin: 0; }
em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.shell { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 14px 20px; color: white; background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 15; top: 0; left: 0; height: 3px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.site-header { position: relative; display: flex; align-items: center; height: 108px; gap: 44px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 29px; letter-spacing: -1.35px; font-weight: 700; }
.brand-mark { width: 29px; height: 29px; }
.wordmark-light { font-weight: 400; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 37px; font-size: 13px; }
.desktop-nav a, .text-button { position: relative; }
.desktop-nav a::after, .text-button::after { position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; content: ''; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.desktop-nav a:hover::after, .text-button:hover::after { transform: scaleX(1); }
.nav-count { padding-left: 6px; font-size: 10px; color: var(--muted); vertical-align: super; }
.text-button { padding: 0; border: 0; background: none; font-size: inherit; }
.text-button span { margin-left: 7px; }
.arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s var(--ease); }
.menu-toggle, .mobile-menu { display: none; }
.title-line { display: block; overflow: clip; padding: 5px 0 13px; margin: -5px 0 -13px; }
.title-line-inner { display: block; }
.work-section { padding-top: 78px; }
.section-meta { display: flex; align-items: center; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; }
.section-meta > span:first-child { display: flex; align-items: center; gap: 12px; }
.tiny-cross { display: inline-block; font-size: 19px; font-weight: 400; line-height: 1; }
.section-meta > span:last-child { color: var(--muted); font-size: 9px; }
.work-heading { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: 60px; margin-top: 28px; margin-bottom: 40px; }
.work-heading h2 { font-size: clamp(34px, 4.1vw, 64px); line-height: 1.12; font-weight: 400; letter-spacing: -.055em; }
.work-heading h2 em { white-space: nowrap; }
.work-heading > p { max-width: 300px; justify-self: end; padding-bottom: 6px; font-size: 13px; color: #686860; line-height: 1.75; }
.project { margin-top: 28px; }
.project + .project { margin-top: 73px; }
.project-preview { display: block; border-radius: 4px; }
.preview-canvas { position: relative; overflow: hidden; padding: 78px 9% 70px; border-radius: 4px; isolation: isolate; }
.forma-canvas { background: #dcdfea; }
.common-canvas { background: #e0e3d9; }
.canvas-label { position: absolute; inset: 27px 30px auto; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #535764; }
.common-canvas .canvas-label { color: #596052; }
.browser-frame { position: relative; border-radius: 5px 5px 0 0; background: #252622; box-shadow: 0 26px 45px -18px #20294350, 0 3px 9px #25263514; transform: translate3d(0, var(--parallax, 0px), 0); transition: box-shadow .5s; will-change: transform; }
.browser-bar { height: 25px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; background: #eeeef1; border-radius: 5px 5px 0 0; color: #777b85; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { display: block; width: 5px; height: 5px; border: 1px solid #a5a7ae; border-radius: 50%; }
.browser-address { padding: 3px 16%; background: #e4e5e9; color: #92949c; font-size: 6px; border-radius: 3px; }
.browser-plus { font-size: 12px; }
.browser-frame img { aspect-ratio: 1440 / 1040; object-fit: cover; object-position: top; }
.preview-action { position: absolute; right: 25px; bottom: 23px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 16px; min-height: 44px; border-radius: 3px; background: var(--paper); font-size: 11px; transition: background .3s, color .3s, transform .35s var(--ease); }
.preview-action .arrow { width: 17px; height: 17px; }
.canvas-bottom { position: absolute; left: 30px; bottom: 28px; font-family: Georgia, serif; font-style: italic; font-size: 12px; color: #535764; }
.project-preview:hover .preview-action { background: var(--blue); color: white; transform: translateY(-3px); }
.project-preview:hover .browser-frame { box-shadow: 0 32px 55px -18px #20294360, 0 3px 9px #25263514; }
.project-details { display: grid; grid-template-columns: 1.05fr 1fr .8fr; align-items: start; gap: 45px; padding-top: 25px; }
.project-label { display: flex; gap: 9px; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.label-separator { color: #b7b6ae; }
.project-details h3 { margin-top: 9px; font-size: 30px; line-height: 1.25; letter-spacing: -1px; font-weight: 400; }
.project-details h3 a { display: inline-flex; align-items: center; gap: 14px; }
.project-details h3 span { opacity: 0; transform: translate(-5px, 5px); font-size: 25px; color: var(--blue); transition: .3s var(--ease); }
.project-details h3 a:hover span, .project-details h3 a:focus-visible span { opacity: 1; transform: translate(0, 0); }
.project-details > p { max-width: 290px; margin-top: 20px; color: #6c6c65; line-height: 1.75; font-size: 12px; }
.project-tags { display: flex; justify-content: end; flex-wrap: wrap; align-content: start; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.project-tags li { padding: 7px 9px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; color: #6c6c65; }
.work-disclaimer { display: flex; align-items: center; gap: 14px; padding-top: 30px; border-top: 1px solid var(--line); margin-top: 64px; }
.work-disclaimer .tiny-cross { color: var(--muted); flex: none; }
.work-disclaimer p { max-width: 650px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.site-footer { padding-top: 78px; padding-bottom: 26px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; }
.footer-top p { font-size: 22px; line-height: 1.4; letter-spacing: -.7px; }
.footer-top p span { color: var(--muted); }
.back-to-top { font-size: 11px; display: flex; align-items: center; gap: 17px; }
.back-to-top span { font-size: 19px; transition: transform .3s; }
.back-to-top:hover span { transform: translateY(-4px); }
.footer-wordmark { font-weight: 500; font-size: clamp(62px, 15.65vw, 245px); letter-spacing: -.085em; line-height: 1.1; margin: 32px 0 22px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; font-size: 9px; color: var(--muted); }
.footer-bottom .text-button { color: var(--ink); }
.studio-dialog { position: fixed; max-width: 660px; width: calc(100% - 36px); max-height: calc(100dvh - 40px); padding: 32px 42px 35px; background: var(--paper); color: var(--ink); border: none; border-radius: 6px; overflow: auto; box-shadow: 0 28px 120px #0003; }
.studio-dialog::backdrop { background: #1b1e236b; backdrop-filter: blur(8px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
.dialog-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; }
.dialog-close:hover { background: #e8e6df; }
.dialog-close svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.2; }
.dialog-star { color: var(--blue); width: 43px; height: 43px; margin-bottom: 25px; }
.studio-dialog h2 { font-size: clamp(33px, 5vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -2px; margin-bottom: 23px; }
.studio-dialog h2 em { color: var(--blue); }
.studio-dialog > p { font-size: 14px; line-height: 1.8; color: #68685f; margin-bottom: 16px; }
.studio-dialog .button { margin-top: 12px; }
.dialog-signoff { display: block; color: var(--muted); font-size: 10px; margin-top: 29px; }

/* Motion is an enhancement. Every section remains readable without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .entrance { animation: entrance .85s var(--ease) both; animation-delay: var(--delay, 0ms); }
  .motion-ready .title-line-inner { animation: title-in 1.05s var(--ease) both; animation-delay: var(--delay, 0ms); }
  .motion-ready .reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
  .motion-ready .project-preview.reveal { transform: translateY(65px) scale(.975); clip-path: inset(7% 0 0 0 round 4px); transition: opacity .7s, transform 1.2s var(--ease), clip-path 1.2s var(--ease); }
  .motion-ready .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 4px); }
  .studio-dialog[open] { animation: dialog-in .4s var(--ease); }
  @keyframes entrance { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes title-in { from { transform: translateY(110%) rotate(2deg); } to { transform: none; } }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1050px) {
  .site-header { gap: 27px; height: 90px; }
  .desktop-nav { gap: 25px; }
  .work-heading { gap: 40px; }
  .project-details { grid-template-columns: 1fr 1fr; gap: 16px 34px; }
  .project-tags { grid-column: 2; justify-content: start; margin-top: 0; }
  .project-details > div { grid-row: span 2; }
  .project-details h3 { font-size: 27px; }
  .project-details > p { margin-top: 13px; }
  .preview-canvas { padding: 67px 8% 67px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  .site-header { height: 86px; gap: 18px; }
  .wordmark { font-size: 25px; gap: 7px; letter-spacing: -1px; }
  .brand-mark { width: 24px; height: 24px; }
  .desktop-nav, .header-button { display: none; }
  .menu-toggle { margin-left: auto; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 50%; z-index: 12; }
  .menu-toggle span { height: 1px; width: 17px; background: currentColor; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { position: absolute; z-index: 10; top: 76px; inset-inline: 18px; display: grid; padding: 12px 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 25px #27282312; border-radius: 4px; }
  .mobile-menu a, .mobile-menu button { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; border: none; font-size: 19px; text-align: left; background: none; }
  .mobile-menu a { border-bottom: 1px solid var(--line); }
  .mobile-menu span { font-size: 13px; color: var(--muted); }
  .work-section { padding-top: 45px; }
  .section-meta { font-size: 8px; letter-spacing: .8px; }
  .section-meta > span:last-child { font-size: 8px; }
  .work-heading { grid-template-columns: 1fr; gap: 19px; margin-top: 26px; margin-bottom: 29px; }
  .work-heading h2 { font-size: clamp(26px, 6.3vw, 40px); line-height: 1.18; }
  .work-heading > p { justify-self: start; max-width: 310px; font-size: 12px; }
  .project { margin-top: 0; }
  .project + .project { margin-top: 46px; }
  .preview-canvas { padding: 51px 6% 65px; }
  .canvas-label { inset: 19px 17px auto; font-size: 7px; letter-spacing: .5px; }
  .canvas-label span:last-child { display: none; }
  .browser-bar { height: 14px; padding: 0 6px; }
  .browser-dots { gap: 2px; }
  .browser-dots i { width: 3px; height: 3px; border-width: .5px; }
  .browser-address { font-size: 4px; padding-block: 1px; }
  .browser-plus { font-size: 8px; }
  .preview-action { right: 16px; bottom: 13px; min-height: 40px; font-size: 9px; padding: 11px 12px; gap: 15px; }
  .preview-action .arrow { width: 14px; height: 14px; }
  .canvas-bottom { left: 17px; bottom: 27px; max-width: 120px; line-height: 1.4; font-size: 9px; }
  .project-details { grid-template-columns: 1fr; gap: 11px; padding-top: 19px; }
  .project-details > div { grid-row: auto; }
  .project-details h3 { font-size: 25px; margin-top: 7px; }
  .project-details h3 span { opacity: 1; transform: none; font-size: 21px; }
  .project-label { font-size: 8px; }
  .project-details > p { max-width: 340px; margin-top: 0; font-size: 12px; }
  .project-tags { grid-column: 1; justify-content: start; margin-top: 0; }
  .project-tags li { font-size: 8px; padding: 6px 8px; }
  .work-disclaimer { align-items: start; padding-top: 23px; margin-top: 34px; }
  .work-disclaimer p { font-size: 9px; }
  .site-footer { padding-top: 51px; padding-bottom: 22px; }
  .footer-top p { font-size: 18px; letter-spacing: -.4px; }
  .back-to-top { font-size: 9px; gap: 9px; }
  .footer-wordmark { font-size: 15.1vw; margin: 26px 0 23px; }
  .footer-bottom { font-size: 8px; gap: 14px; padding-top: 19px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .studio-dialog { padding: 22px 24px 28px; }
  .studio-dialog h2 { letter-spacing: -1.4px; font-size: 32px; }
  .studio-dialog > p { font-size: 13px; }
}
@media (max-width: 359px) {
  :root { --gutter: 18px; }
  .work-heading h2 { font-size: 6.4vw; }
  .canvas-bottom { display: none; }
  .studio-dialog h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .browser-frame { transform: none; will-change: auto; }
}
