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

:root {
  --paper: #f7f6f2;
  --white: #fffefa;
  --ink: #191b1b;
  --muted: #535957;
  --faint: #6a706c;
  --line: #d9dad3;
  --blue: #244bea;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: "Portfolio Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after {box-sizing: border-box}
body, h1, h2, h3, p, figure {margin: 0}
button {font: inherit}
button {cursor: pointer}
a {color: inherit; text-decoration: none}
img {display: block; max-width: 100%}
::selection {background: #d0dcff; color: var(--ink)}
:focus-visible {outline: 2px solid var(--blue); outline-offset: 5px}

.shell {width: min(1224px, calc(100% - 104px)); margin-inline: auto}
.skip {position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 14px; color: white; background: var(--blue)}
.skip:focus {top: 12px}
.site-header {border-bottom: 1px solid var(--line)}
.header-inner {display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px}
.wordmark {display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; white-space: nowrap}
.brand-mark {display: grid; place-items: center; width: 35px; height: 35px; background: var(--blue); color: white; font-size: 15px; letter-spacing: -.07em}
nav {display: flex; align-items: center; gap: 38px; font-size: 14px; font-weight: 500}
nav a {display: flex; align-items: center; min-height: 44px; gap: 7px}
nav a:hover, .plain-link:hover, .site-footer a:hover {color: var(--blue)}
.header-contact span, .plain-link span {color: var(--blue)}

.hero {display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(290px, .86fr); align-items: center; gap: clamp(30px, 6vw, 96px); padding-block: 51px}
.hero-copy {padding-bottom: 16px}
.kicker {display: flex; align-items: center; gap: 9px; font: 500 11px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase}
.location-dot {width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e0e5fb; margin-inline: 4px 3px}
h1 {font-size: clamp(63px, 8.3vw, 123px); font-weight: 700; line-height: .96; letter-spacing: -.078em; word-spacing: .04em; margin: 21px 0 24px}
h1 span {color: var(--blue)}
.hero-summary {font-size: clamp(17px, 1.7vw, 23px); line-height: 1.46; color: #464c4a; max-width: 540px; letter-spacing: -.025em}
.hero-links {display: flex; flex-wrap: wrap; gap: 13px 24px; align-items: center; margin-top: 27px}
.button {display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 22px; padding: 10px 17px; font-weight: 500; font-size: 14px; transition: background .16s ease}
.button-primary {background: var(--ink); color: white}
.button-primary:hover {background: var(--blue)}
.plain-link {display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; font-size: 14px}

.hero-visual {width: min(100%, 430px); justify-self: end}
.hero-portrait {position: relative; background-color: #e5e9ff; background-image: radial-gradient(ellipse at 50% 45%, #e5e9ff 19%, transparent 73%), linear-gradient(#244bea24 1px, transparent 1px), linear-gradient(90deg, #244bea24 1px, transparent 1px); background-size: 100% 100%, 25px 25px, 25px 25px; overflow: hidden; aspect-ratio: 1.27}
.hero-portrait img {width: 90%; height: 100%; margin-inline: auto; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.04); mix-blend-mode: multiply}
.hero-portrait::before, .hero-portrait::after {position: absolute; z-index: 1; width: 15px; height: 15px; border: solid var(--blue); content: ""; pointer-events: none}
.hero-portrait::before {top: 12px; left: 12px; border-width: 1px 0 0 1px}
.hero-portrait::after {bottom: 12px; right: 12px; border-width: 0 1px 1px 0}
.hero-visual figcaption {display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--faint); font: 400 9px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .08em}
.hero-visual figcaption span:last-child {color: var(--blue); font-weight: 700}

.work {border-top: 1px solid var(--line); padding-block: 27px 52px}
.section-heading {margin-bottom: 22px}
.section-dash {display: block; width: 14px; height: 2px; background: var(--blue)}
h2 {font-size: clamp(38px, 4.4vw, 63px); line-height: 1.02; letter-spacing: -.073em; margin-top: 7px}
.featured-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; scroll-margin-top: 14px}
.featured-card {display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--white); transition: border-color .16s ease, box-shadow .16s ease}
.featured-card:hover {border-color: #a8b2e7; box-shadow: 0 6px 19px #232a3b0b}
.cover {aspect-ratio: 2.35; position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center}
.lead-card {display: grid; grid-template-columns: 1.36fr 1fr; grid-column: 1 / -1}
.lead-card .cover {aspect-ratio: auto; min-height: 265px}
.lead-card .card-body {align-self: center; padding: clamp(20px, 4vw, 48px)}
.lead-card .card-body h3 {font-size: clamp(38px, 5vw, 70px)}
.lead-card .card-body p {font-size: clamp(15px, 1.4vw, 20px); margin-top: 13px; max-width: 360px}
.cover img {width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease}
.featured-card:hover .cover img {transform: scale(1.025)}
.cover-nextside {background: #102820; color: #e2f98e}
.cover-nextside::after {content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, #142f2600 12%, #091c16ad 83%); z-index: -1}
.pitch {position: absolute; z-index: -2; width: 83%; height: 81%; border: 1px solid #64987880; transform: rotate(-15deg); background-image: repeating-linear-gradient(90deg, #638b5018 0 10%, transparent 10% 20%)}
.pitch::before {content: ""; position: absolute; inset: 0 50% 0 auto; border-left: 1px solid #649878b3}
.pitch::after {content: ""; position: absolute; width: 19%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #649878b3; top: 50%; left: 50%; transform: translate(-50%, -50%)}
.pitch i {position: absolute; top: 25%; height: 50%; width: 14%; border: 1px solid #649878b3}
.pitch i:first-child {left: 0; border-left: 0}
.pitch i:last-child {right: 0; border-right: 0}
.nextside-wordmark {display: flex; align-items: center; gap: 8px; font-size: clamp(39px, 5.5vw, 75px); letter-spacing: -.075em; font-weight: 700; line-height: 1; transform: skew(-7deg)}
.nextside-wordmark i {display: block; width: .4em; height: .4em; transform: rotate(-45deg); border-right: .11em solid currentColor; border-bottom: .11em solid currentColor; margin-right: .09em}
.cover-brand {padding: 20px}
.cover-brand img {width: auto; height: auto; max-width: 66%; object-fit: contain}
.cover-vitaco {background: #f0f3e9}
.cover-vitaco img {width: min(192px, 55%)}
.cover-iag {background: #efecfa}
.cover-iag img {width: clamp(80px, 17%, 112px)}
.cover-venus {background: #faf0e6}
.cover-venus img {width: clamp(142px, 45%, 192px)}
.cover-thesis {background: #e3e7f9}
.cover-thesis img {object-position: 50% 49%}
.cover-note {position: absolute; bottom: 10px; right: 10px; background: #f7f7feee; color: #3b4257; padding: 4px 6px; font: 400 9px/1.3 var(--mono); border: 1px solid #dce0ee}
.no-script {margin: 10px 0; color: var(--blue)}
.card-body {padding: 15px 15px 18px; flex: 1}
.card-meta {display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: var(--faint)}
.card-meta span:first-child {color: var(--blue)}
.card-body h3 {display: flex; justify-content: space-between; align-items: baseline; gap: 12px; line-height: 1.12; font-size: clamp(21px, 2.05vw, 30px); letter-spacing: -.052em}
.card-body p {color: var(--muted); margin-top: 7px; font-size: 14px}
.arrow {font-weight: 500; font-size: 18px; color: var(--blue); flex-shrink: 0}

.about {border-top: 1px solid var(--line); display: grid; grid-template-columns: .68fr 1fr; gap: 30px; padding-block: 53px 62px}
.about-content {max-width: 670px}
.about p:not(.kicker) {color: #3f4543; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -.018em; line-height: 1.55}
.about p + p {margin-top: 11px}
.about .button {margin-top: 22px}
.site-footer {border-top: 1px solid var(--line)}
.footer-inner {min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; color: var(--muted)}

body:has(dialog[open]) {overflow: hidden}
dialog {width: min(720px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; background: var(--paper); border: 1px solid #b9bdb5; color: var(--ink); box-shadow: 0 24px 110px #1d212b33}
dialog::backdrop {background: #171d29a3}
.dialog-bar {position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 2; padding: 5px 20px}
.dialog-close {display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 7px; color: var(--ink); background: transparent; border: 0; font-size: 14px}
.dialog-close:hover {color: var(--blue)}
.dialog-close span {font-size: 24px; line-height: 1}
.case-content {padding: clamp(20px, 5vw, 42px)}
.case-meta {color: var(--blue); margin-bottom: 10px; flex-wrap: wrap}
.case-title {font-size: clamp(37px, 6vw, 65px); margin: 0 0 12px}
.case-summary {color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); margin-bottom: 24px}
.case-figure {margin-bottom: 24px}
.case-figure img {width: 100%; height: auto; background: #e6e6db}
.case-figure figcaption {margin-top: 7px; font-size: 12px; color: var(--faint)}
.case-section {border-top: 1px solid var(--line); padding: 14px 0 16px}
.case-section h3 {margin-bottom: 4px; font-size: 15px}
.case-section p {color: #404643; font-size: 15px}
.project-tags {list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px}
.project-tags li {padding: 5px 8px; border: 1px solid #caccbf; font-size: 12px; color: var(--muted)}
.case-content .button {margin-top: 19px}

@media (max-width: 1050px) {
  .shell {width: calc(100% - 72px)}
  .hero {gap: 30px}
  h1 {font-size: clamp(56px, 8.5vw, 100px)}
}
@media (max-width: 770px) {
  .shell {width: calc(100% - 40px)}
  .header-inner {min-height: 66px}
  nav {gap: 20px}
  .hero {grid-template-columns: minmax(0, 1.3fr) minmax(184px, 1fr); gap: 20px; padding-block: 38px}
  h1 {font-size: clamp(46px, 8.8vw, 74px); margin-block: 15px 16px}
  .hero-summary {font-size: 17px}
  .hero-links {gap: 7px 11px; margin-top: 19px}
  .hero-visual figcaption {font-size: 8px}
  .featured-grid {gap: 12px}
  .card-body {padding: 11px}
  .card-meta {font-size: 9px}
  .card-body p {font-size: 13px}
  .lead-card .cover {min-height: 210px}
}
@media (max-width: 560px) {
  .shell {width: calc(100% - 32px)}
  .header-inner {gap: 10px}
  nav {gap: 13px; font-size: 13px}
  .wordmark {font-size: 14px; gap: 7px}
  .brand-mark {width: 28px; height: 28px; font-size: 13px}
  .hero {display: block; padding-block: 31px 29px}
  .hero-copy {padding-bottom: 0}
  h1 {font-size: clamp(47px, 11.4vw, 65px)}
  .hero-summary {max-width: 370px}
  .hero-visual {width: 100%; margin-top: 18px; max-width: none}
  .hero-portrait {aspect-ratio: 1.65}
  .hero-portrait img {width: 83%; object-position: 50% 27%}
  .hero-visual figcaption {margin-top: 7px}
  .work {padding-block: 22px 33px}
  .section-heading {margin-bottom: 14px}
  .featured-grid {grid-template-columns: 1fr; gap: 14px}
  .lead-card {display: flex}
  .lead-card .cover {min-height: 0; aspect-ratio: 1.95}
  .lead-card .card-body {width: 100%; padding: 13px}
  .lead-card .card-body h3 {font-size: 31px}
  .lead-card .card-body p {margin-top: 8px}
  .cover {aspect-ratio: 2.1}
  .nextside-wordmark {font-size: 48px}
  .card-body {padding: 13px}
  .card-body h3 {font-size: 24px}
  .card-body p {font-size: 14px}
  .about {grid-template-columns: 1fr; padding-block: 33px 40px; gap: 12px}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {scroll-behavior: auto !important; transition: none !important}
}
