:root {
  color-scheme: light;
  --paper: #f3f2ed;
  --ink: #1d201d;
  --muted: #565b55;
  --line: #cecec5;
  --orange: #a83a16;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; font-size: 1rem; line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
::selection { background: #fbb69b; color: var(--ink); }

.wrap { width: min(100% - clamp(2.25rem, 8vw, 8.5rem), 89rem); margin-inline: auto; }
.mono { font: 500 .8125rem/1.45 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 5; transform: translateY(-200%); padding: .6rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.signature { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font-weight: 680; letter-spacing: -.035em; font-size: 1.19rem; }
.signature-mark { width: 2.65rem; height: 2.65rem; flex: none; border-radius: .3rem; }

.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 2.65rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 580; }
.site-nav a:hover, .text-link:hover { color: var(--orange); text-decoration: underline; text-underline-offset: .22em; }

.hero { display: grid; grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr); gap: clamp(2rem, 5.2vw, 6.25rem); padding-block: 2rem 4.85rem; align-items: stretch; }
.hero-copy { align-self: center; padding-block: 2rem; }
.hero-label { color: var(--muted); margin-bottom: 1.55rem; }
.hero-label span, .case-category span { color: var(--orange); margin-inline: .4rem; }
.hero h1 { font-size: clamp(3.6rem, 5.9vw, 6.15rem); line-height: .97; font-weight: 690; letter-spacing: -.052em; word-spacing: .025em; }
.hero h1 span { color: var(--orange); }
.hero-intro { max-width: 28.5rem; margin-top: 1.65rem; font-size: clamp(1.0625rem, 1.38vw, 1.25rem); line-height: 1.46; color: var(--muted); }
.button { width: fit-content; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.1rem; min-height: 3rem; border-radius: .25rem; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650; font-size: .9375rem; transition: background .18s ease; }
.button:hover { background: var(--orange); }
.hero .button { margin-top: 1.65rem; }
.hero-product { display: grid; grid-template-rows: 1fr auto; min-width: 0; background: #dbe0d9; color: #222c28; overflow: hidden; border-radius: .45rem; text-decoration: none; }
.hero-image { container-type: size; position: relative; height: clamp(26rem, 36.9vw, 37.5rem); overflow: hidden; isolation: isolate; background: linear-gradient(#b4c0c1 0 53%, #aebcbd); }
.hero-image > img:first-child { position: absolute; left: 50%; top: 0; width: min(100%, 88cqh); max-width: none; height: auto; transform: translateX(-50%); mask-image: linear-gradient(to right, transparent, #000 8% 92%, transparent); transition: translate .3s ease; }
.hero-product:hover .hero-image > img:first-child { translate: 0 -.25rem; }
.hero-image > .hero-wordmark { position: absolute; z-index: 1; left: 1.35rem; top: 1.25rem; width: clamp(4.8rem, 7vw, 6.4rem); height: auto; }
.hero-view { position: absolute; z-index: 1; right: 1.2rem; bottom: 1rem; text-align: right; }
.hero-caption { display: flex; align-items: center; gap: .7rem 1.15rem; flex-wrap: wrap; padding: .75rem 1.1rem .75rem 1.35rem; min-height: 3.8rem; border-top: 1px solid #a6b2aa; }
.caption-main { font-size: 1.06rem; letter-spacing: -.02em; font-weight: 720; }
.hero-caption .mono { color: #424c45; }
.work-open { display: inline-grid; width: 2rem; height: 2rem; place-items: center; flex: 0 0 auto; border-radius: .22rem; border: 1px solid currentColor; font: 400 1.1rem/1 var(--mono); }
.hero-caption .work-open { margin-left: auto; }
.hero-product:hover .work-open, .work-link:hover .work-open, .case-next a:hover .work-open { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem 1rem; flex-wrap: wrap; padding-top: 1.2rem; margin-bottom: 1.5rem; border-top: 1px solid var(--line); }
.section-heading h2, .about h2, .footer-main h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); font-weight: 690; line-height: 1; letter-spacing: -.045em; }
.section-heading p, .work-category { color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 1.25rem; }
.work-link { display: block; text-decoration: none; }
.work-media, .case-media { overflow: hidden; background: #e3e3dc; border-radius: .45rem; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.work-media { aspect-ratio: 1.72; }
.work-media > img, .case-media > img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.work-media > img { transition: scale .32s ease; }
.work-link:hover .work-media > img { scale: 1.025; }
.work-info { display: flex; align-items: start; justify-content: space-between; gap: .75rem; padding: .95rem .05rem 0; }
.work-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; margin-top: .22rem; letter-spacing: -.053em; font-weight: 680; }
.work-description { margin-top: .45rem; color: var(--muted); max-width: 31rem; }
.work-info .work-open { margin-top: .1rem; }

.media-mono { background: #d1d9db; }
.media-mono > img { object-fit: cover; object-position: 50% 48%; }
.case-media.media-mono > img { object-fit: contain; }
.media-varyn { background: #decbc1; }
.work-media.media-varyn > img { object-fit: cover; object-position: 50% 50%; }
.case-media.media-varyn { background: #c3bdb3; }
.media-joni { background: #e3e3dc; }
.media-joni > img { max-height: 95%; }
.media-grain-scale { background: #dddeda; }
.media-grain-scale > img { max-height: 79%; max-width: 79%; }
.media-oto { background: #dfe2d9; }
.media-oto > img { max-height: 90%; max-width: 88%; }
.media-nashra { background: #b1bfc0; }
.media-swifty, .media-stratus { background: #e8e8df; }
.media-swifty > img, .media-stratus > img { max-height: 82%; max-width: 84%; }

.sail-plate, .apple-plate { height: 100%; width: 100%; display: grid; align-content: space-between; padding: clamp(.95rem, 2vw, 1.65rem); }
.sail-plate { color: #edece5; background: #252a27; background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px); background-size: 1.6rem 1.6rem; }
.plate-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; font-size: .75rem; }
.sail-plate .plate-top { color: #ced2c9; }
.sail-lockup { display: flex; gap: clamp(.65rem, 1.6vw, 1.35rem); align-items: center; justify-content: center; font-size: clamp(2.1rem, 5.1vw, 5.65rem); line-height: 1; font-weight: 740; letter-spacing: -.07em; }
.sail-lockup img { width: 1em; height: 1em; border-radius: .1em; }
.sail-flow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #6c746a; width: 100%; font-size: .73rem; color: #d4d8d0; }
.sail-flow span { padding: .45rem .2rem; text-align: center; }
.sail-flow span + span { border-left: 1px solid #6c746a; }
.apple-plate { color: #30342e; background: #ddded7; background-image: radial-gradient(#8f95885c .6px, transparent .6px); background-size: .8rem .8rem; }
.connector { place-self: center; display: flex; align-items: center; justify-content: space-evenly; width: 42%; max-width: 22rem; aspect-ratio: 2.6; background: #2a2d29; border: 2px solid #5e655b; border-radius: clamp(.7rem, 2.7vw, 2.1rem); outline: 1px solid #6d7568; outline-offset: .42rem; box-shadow: inset 0 0 0 .24rem #aeb0a4; }
.connector i { width: .17rem; height: 29%; border-radius: 1rem; background: #ced1c6; transform: rotate(16deg); }
.apple-spec { display: flex; justify-content: space-between; border-top: 1px solid #a2a599; padding-top: .55rem; font-size: .75rem; }

.project-index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem 2rem; margin-top: 4.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.project-index h3 { font-size: 1.55rem; font-weight: 670; letter-spacing: -.045em; }
.project-index ul { list-style: none; margin: 0; padding: 0; }
.project-index a { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem 1rem; flex-wrap: wrap; padding: .65rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.project-index a:hover { color: var(--orange); }
.project-index a .mono { color: var(--muted); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem 2rem; margin-top: 4.25rem; padding-block: 2.2rem 5.2rem; border-top: 1px solid var(--line); }
.about-copy { color: var(--muted); font-size: clamp(1.125rem, 1.7vw, 1.4rem); max-width: 41rem; }
.about-copy p + p { margin-top: .9rem; }

.site-footer { background: #272b25; color: #eeeee7; padding-block: 3.3rem 1.35rem; }
.footer-main { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; padding-bottom: 3.6rem; }
.footer-label { color: #fca783; margin-bottom: .8rem; }
.button-light { background: #eeeee7; color: #252823; }
.button-light:hover { background: #ffb69b; }
.site-footer :focus-visible { outline-color: #ffb69b; }
.footer-base { border-top: 1px solid #656b60; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #c7c9c0; font-size: .9375rem; }
.footer-base nav { display: flex; gap: 1.35rem; }
.footer-base a { text-underline-offset: .23em; }
.footer-base a:hover { color: #ffe2d5; }
.footer-divider { color: #fca783; margin-inline: .25rem; }

.case { max-width: 76rem; }
.back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1.05rem; text-underline-offset: .3em; color: var(--orange); }
.case-heading { margin-block: 1.65rem 2.2rem; }
.case-heading h1, .not-found h1 { font-size: clamp(2.85rem, 7.5vw, 6.5rem); line-height: .96; letter-spacing: -.053em; font-weight: 720; margin-top: .55rem; }
.case-heading > p:last-child { font-size: clamp(1.15rem, 2.15vw, 1.65rem); color: var(--muted); margin-top: .9rem; max-width: 39rem; }
.case-media { height: clamp(19rem, 48vw, 35rem); }
.case-media.media-nashra { height: clamp(25rem, 57vw, 45rem); }
.case-media .sail-plate, .case-media .apple-plate { padding: clamp(1.1rem, 3vw, 2.35rem); }
.case-figure figcaption, .case-gallery figcaption { color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: .55rem; }
.case-story { display: grid; grid-template-columns: minmax(11rem, .27fr) minmax(0, .73fr); gap: 1.7rem clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--line); margin-block: 2.35rem; padding-top: 1.65rem; }
.case-story aside dl { display: grid; gap: .85rem; }
.case-story dt { color: var(--muted); }
.case-story dd { margin-top: .15rem; font-weight: 600; }
.case-story aside a { display: inline-block; margin-top: 1rem; text-underline-offset: .2em; }
.case-story article { max-width: 42rem; }
.case-story article section + section { margin-top: 1.75rem; }
.case-story h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); letter-spacing: -.048em; line-height: 1.1; margin-bottom: .5rem; }
.case-story article p { font-size: 1.0625rem; color: var(--muted); }
.case-story article p + p { margin-top: .65rem; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 2.5rem; }
.case-gallery figure:only-child { grid-column: 1 / -1; }
.case-gallery img { width: 100%; height: clamp(10rem, 30vw, 25rem); object-fit: contain; padding: .5rem; background: #e5e5dd; border-radius: .45rem; }
.case-gallery img[src$=".svg"] { height: auto; min-height: 5.5rem; padding: 1.25rem; }
.case-next { border-top: 1px solid var(--line); margin-bottom: 3rem; }
.case-next a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: .3rem 1rem; padding-block: 1.05rem; text-decoration: none; }
.case-next strong { font-size: clamp(1.4rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.05em; }
.case-next .work-open { grid-column: 2; grid-row: 1 / 3; }
.not-found { padding-block: 5rem; }
.not-found a { margin-top: 1.3rem; }

@media (max-width: 1080px) {
  .hero { gap: clamp(1.8rem, 3.4vw, 3rem); }
  .hero h1 { font-size: clamp(2.65rem, 5.8vw, 5.05rem); }
  .hero-caption .mono { font-size: .73rem; }
}
@media (max-width: 750px) {
  .wrap { width: calc(100% - 2.35rem); }
  .header-row { min-height: 4rem; }
  .signature { gap: .48rem; font-size: 1.02rem; }
  .signature-mark { width: 2.15rem; height: 2.15rem; }
  .site-nav { gap: .8rem; }
  .site-nav a { font-size: .875rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 1.75rem 3.4rem; }
  .hero-copy { padding: .45rem 0 0; }
  .hero h1 { font-size: clamp(2.7rem, 11.8vw, 5.2rem); }
  .hero-label { margin-bottom: .9rem; }
  .hero-intro { margin-top: .95rem; }
  .hero .button { margin-top: 1.15rem; }
  .hero-image { height: clamp(20rem, 85vw, 32rem); }
  .hero-image > .hero-wordmark { left: 1rem; top: .9rem; }
  .hero-caption { padding-inline: .95rem; }
  .work-grid { gap: 1.95rem .95rem; }
  .work-info .work-open { display: none; }
  .project-index { margin-top: 3rem; }
  .about { margin-top: 3rem; padding-bottom: 3.5rem; }
}
@media (max-width: 520px) {
  .work-grid, .project-index, .about, .case-story, .case-gallery { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 1rem; }
  .work-media { aspect-ratio: 1.58; }
  .work-info .work-open { display: inline-grid; }
  .project-index a { align-items: start; }
  .about { padding-top: 1.5rem; }
  .case-story aside dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery img { height: auto; max-height: 24rem; }
  .hero-view { right: .75rem; top: .95rem; bottom: auto; font-size: .7rem; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 1.75rem); }
  .header-row { gap: .5rem; }
  .signature { gap: .35rem; font-size: .92rem; }
  .signature-mark { width: 1.75rem; height: 1.75rem; }
  .site-nav { gap: .55rem; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 2.8rem); }
  .hero-caption { gap: .45rem; }
  .hero-caption .mono { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
