:root {
  --paper: #ecebe9;
  --ink: #171419;
  --muted: #514b53;
  --line: #17141930;
  --mint: #43e9d5;
  --orange: #f64d01;
  --pink: #ff1f70;
  --purple: #8338ed;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 "Geist", system-ui, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #6318bd; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1; }
h2 { font-size: clamp(38px, 5.2vw, 76px); letter-spacing: -.027em; font-weight: 760; }
.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; transform: translateY(-200%); background: var(--mint); padding: 10px 16px; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #ecebe933; background: var(--ink); color: var(--paper); }
.site-header .wordmark img { filter: invert(1); }
.header-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.wordmark { display: inline-block; flex: none; }
.wordmark img { height: auto; width: 72px; }
nav { display: flex; align-items: center; gap: clamp(12px, 2.8vw, 44px); font-size: 14px; font-weight: 650; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #ecebe955; border-radius: 3px; padding: 7px 15px; }
.language-switch { display: grid; place-items: center; min-width: 35px; min-height: 35px; border-radius: 3px; background: var(--mint); color: var(--ink); font: 600 12px var(--mono); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(525px, 55vw, 710px);
  padding: clamp(64px, 8vw, 110px) 0;
  text-align: center;
  color: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(#ecebe917 1px, transparent 1px),
    linear-gradient(90deg, #ecebe917 1px, transparent 1px),
    radial-gradient(ellipse at 10% 90%, #8338ed62, transparent 51%),
    radial-gradient(ellipse at 94% 13%, #43e9d52d, transparent 43%);
  background-size: 54px 54px, 54px 54px, auto, auto;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 20px max(16px, calc((100% - 1280px) / 2));
  pointer-events: none;
  border-inline: 1px solid #ecebe926;
  background:
    linear-gradient(var(--mint), var(--mint)) top left/18px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) bottom right/18px 2px no-repeat;
}
.hero-copy { position: relative; z-index: 1; padding-inline: 20px; }
.hero .kicker, .hero .actions { justify-content: center; }
.hero .intro { margin-inline: auto; color: #ecebe9d1; }
.kicker { display: flex; align-items: center; gap: 9px; font: 600 12px/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.studio-dot { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--pink); }
.hero h1 { margin: 20px 0 24px; font-weight: 800; font-size: clamp(50px, 9vw, 132px); letter-spacing: -.033em; line-height: .91; }
.hero h1 em { display: inline-block; color: var(--mint); font-style: normal; }
.intro { max-width: 45ch; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 10px 17px; border: 1px solid currentColor; border-radius: 3px; font-size: 14px; font-weight: 720; transition: background .18s, color .18s; }
.primary { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.primary:hover { background: #392c40; }
.secondary:hover { background: var(--mint); color: var(--ink); }
.hero .primary { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.hero .primary:hover { background: var(--paper); border-color: var(--paper); }
.hero .secondary { border-color: #ecebe96b; }
.hero a:focus-visible { outline-color: var(--mint); }
.external-arrow { display: inline-block; flex: none; position: relative; width: .75em; height: .75em; }
.external-arrow::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 65%; height: 65%; border-top: 1.5px solid; border-right: 1.5px solid; }
.external-arrow::after { content: ""; position: absolute; top: calc(50% - .75px); left: -.1em; width: .95em; border-top: 1.5px solid; transform: rotate(-45deg); }
.service-section { background: #201a25; color: var(--paper); border-top: 1px solid #ecebe933; padding-block: clamp(55px, 7vw, 95px); }
.section-heading { display: flex; justify-content: space-between; gap: 16px 34px; align-items: end; margin-bottom: 30px; }
.section-heading p { max-width: 37ch; color: var(--muted); }
.service-section .section-heading p { color: #ecebe9bc; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-card { display: flex; flex-direction: column; justify-content: space-between; gap: 43px; min-height: 235px; padding: clamp(16px, 2vw, 27px); border-radius: var(--radius); color: var(--ink); background: var(--mint); }
.service-card:nth-child(2) { background: var(--purple); color: var(--paper); }
.service-card:nth-child(3) { background: var(--pink); }
.service-card:nth-child(4) { background: var(--orange); }
.service-card svg { width: 38px; height: 38px; }
.service-card h3 { font-size: clamp(22px, 2.15vw, 33px); letter-spacing: -.045em; }
.service-card p { margin-top: 10px; font-size: 14px; line-height: 1.45; }

.work { padding-block: clamp(52px, 8vw, 111px); }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 15px 0 21px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { padding: 7px 13px; background: transparent; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); font: 500 12px/1.4 var(--mono); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
#project-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.work h2 em { color: #651bc1; font-style: normal; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(25px, 4vw, 54px) clamp(16px, 2.4vw, 34px); }
.project-card { display: block; min-width: 0; }
.project-card-featured { grid-column: 1/-1; }
.project-preview { display: grid; min-width: 0; aspect-ratio: 8/5; overflow: hidden; border-radius: var(--radius); }
.project-preview-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.project-preview img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.project-card-featured .project-preview { aspect-ratio: 32/9; gap: 6px; }
.project-cover { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.62; border-radius: var(--radius); }
.project-cover img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0 19px; border-bottom: 1px solid var(--line); }
.project-tags { color: var(--muted); margin-bottom: 7px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .045em; }
.card-meta h3 { font-size: clamp(27px, 3.15vw, 47px); letter-spacing: -.05em; }
.project-card-featured h3 { font-size: clamp(34px, 4.5vw, 62px); }
.project-subtitle { color: var(--muted); margin-top: 6px; font-size: 14px; }
.project-action { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 3px; transition: color .18s, background .18s, border-color .18s; }
.project-card:hover .project-action, .project-card:focus-visible .project-action { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.behance-link { margin-top: 27px; }

.about { background: var(--ink); color: var(--paper); }
.about-inner { max-width: 760px; padding-block: clamp(52px, 7vw, 98px); }
.about-copy h2 { margin: 15px 0 24px; }
.about-copy h2 em { font-style: normal; color: var(--mint); }
.about-copy > p:not(.kicker) { max-width: 62ch; color: #ecebe9d1; font-size: clamp(16px, 1.4vw, 19px); }
.about-copy > p + p { margin-top: 13px; }

.contact { padding-block: clamp(38px, 6vw, 85px); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); }
.contact-pitch { position: relative; padding: clamp(23px, 3.8vw, 54px); background: var(--mint); }
.contact-pitch::after { content: ""; position: absolute; height: 7px; inset: auto 0 0; background: linear-gradient(90deg, var(--pink) 0 33.33%, var(--purple) 33.33% 66.67%, var(--orange) 66.67%); }
.contact-panel h2 { margin-top: 13px; font-size: clamp(42px, 6.1vw, 89px); }
.contact-panel h2 em { font-style: normal; }
.contact-pitch > p:not(.kicker) { margin: 15px 0 22px; max-width: 42ch; }
.contact-details { display: grid; align-content: center; gap: 0; min-width: 0; padding: clamp(22px, 3.7vw, 50px); background: var(--ink); color: var(--paper); font-style: normal; font-size: 15px; }
.contact-ident { display: grid; gap: 3px; padding-bottom: 16px; }
.contact-ident strong { font: 720 26px/1.1 var(--display); }
.contact-ident span { color: #ecebe9b8; font: 500 12px/1.4 var(--mono); }
.contact-details a { padding: 10px 0; border-top: 1px solid #ecebe935; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--mint); }
.contact-details a:focus-visible { outline-color: var(--mint); }
.contact-details .external-arrow { margin-left: 5px; }
.footer { border-top: 1px solid var(--line); font: 500 12px/1.5 var(--mono); }

.detail { padding-block: 43px 80px; }
.detail .back { display: inline-block; margin-bottom: 28px; color: #651bc1; font-size: 14px; font-weight: 750; }
.detail h1 { margin: 10px 0; font-size: clamp(45px, 9vw, 105px); letter-spacing: -.065em; overflow-wrap: anywhere; }
.detail .intro { max-width: none; margin-bottom: 22px; }
.detail .project-cover { aspect-ratio: 1.65; margin-bottom: 34px; }
.case-overview { max-width: 65ch; margin-bottom: 28px; }
.case-sections { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-block: 24px 46px; }
.case-sections section { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.case-sections h2, .gallery-section h2 { font-size: 32px; letter-spacing: -.04em; }
.case-sections p { margin-top: 9px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 15px; margin-top: 17px; }
.gallery-grid button { align-self: start; border: 0; color: inherit; padding: 0; background: transparent; text-align: left; }
.gallery-grid img { width: 100%; height: auto; }
.gallery-caption-inline { display: block; padding-block: 6px; color: var(--muted); font-size: 13px; }
.gallery-grid-portrait { grid-template-columns: minmax(0,1fr); max-width: 740px; margin-inline: auto; }
.next-project { display: grid; grid-template-columns: 1fr auto; gap: 11px; align-items: center; margin-top: 31px; padding: 19px 22px; background: var(--mint); border-radius: 15px; }
.next-project .kicker { grid-column: 1/-1; }
.next-project strong { font-size: 25px; }
.gallery-dialog { width: min(950px, calc(100% - 24px)); max-height: 95vh; overflow: auto; padding: 12px; border: 0; border-radius: 15px; background: var(--paper); color: var(--ink); }
.gallery-dialog::backdrop { background: #171419d9; }
.gallery-dialog img { width: 100%; height: min(65vh, 650px); object-fit: contain; margin: 8px 0; }
.dialog-bar, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-dialog button { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.gallery-controls p, #gallery-count { font-size: 13px; text-align: center; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 56px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner, .footer { min-height: 65px; gap: 9px; }
  .wordmark img { width: 48px; }
  nav { font-size: 12px; gap: 10px; }
  .nav-contact { padding: 0; border: 0; }
  .nav-contact .external-arrow { display: none; }
  .language-switch { min-width: 28px; min-height: 28px; }
  .hero { min-height: 0; padding-block: 61px 65px; }
  .hero h1 { font-size: clamp(42px, 11.2vw, 75px); }
  .hero::before { background-size: 35px 35px, 35px 35px, auto, auto; }
  .hero-copy { padding-inline: 13px; }
  .section-heading { display: grid; align-items: start; margin-bottom: 22px; }
  .service-grid { gap: 9px; }
  .service-card { gap: 25px; min-height: 175px; border-radius: var(--radius); }
  .service-card h3 { font-size: 20px; }
  .service-card p { font-size: 13px; }
  .project-grid, .contact-panel, .case-sections, .gallery-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: flex-start; }
  #project-count { padding-top: 8px; }
  .project-cover { border-radius: 17px; }
}
@media (max-width: 520px) {
  .project-card-featured .project-preview { aspect-ratio: 16/9; grid-template-columns: 1fr; }
  .project-card-featured .project-preview-pair img + img { display: none; }
}
@media (max-width: 360px) {
  nav { gap: 7px; font-size: 11px; }
  .hero h1 { font-size: 38px; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
