:root {
  --paper: #ecebe9;
  --ink: #171419;
  --muted: #514b53;
  --line: #17141930;
  --mint: #43e9d5;
  --orange: #f64d01;
  --pink: #ff1f70;
  --purple: #8338ed;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 24px;
}
*, *::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 { line-height: 1; }
h2 { font-size: clamp(38px, 5.2vw, 76px); letter-spacing: -.055em; font-weight: 720; }
.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 var(--line); }
.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 var(--ink); border-radius: 100px; padding: 7px 15px; }
.language-switch { display: grid; place-items: center; min-width: 35px; min-height: 35px; border-radius: 50%; background: #1714190d; font-size: 12px; }

.hero { padding-block: clamp(66px, 10vw, 140px); text-align: center; }
.hero .kicker, .hero .actions { justify-content: center; }
.hero .intro { margin-inline: auto; }
.kicker { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 730; letter-spacing: .08em; text-transform: uppercase; }
.studio-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.hero h1 { margin: 21px 0 19px; font-weight: 750; font-size: clamp(42px, 9.4vw, 138px); letter-spacing: -.06em; line-height: .89; }
.hero h1 em { display: inline-block; color: #651bc1; font: italic 400 1.17em/.86 var(--serif); letter-spacing: -.045em; }
.intro { max-width: 42ch; 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 var(--ink); border-radius: 100px; font-size: 14px; font-weight: 700; transition: background .18s, color .18s; }
.primary { color: var(--paper); background: var(--ink); }
.primary:hover { background: #392c40; }
.secondary:hover { background: 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: var(--ink); color: var(--paper); 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: #0e0817; }
.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: 100px; color: var(--ink); font-size: 13px; }
.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: italic 400 1.12em/.9 var(--serif); }
.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: 15px; }
.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-size: 11px; font-weight: 650; 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: 50%; 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: #ddd0f0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px; padding-block: clamp(45px, 6vw, 78px); }
.about-inner p { max-width: 52ch; font-size: clamp(15px, 1.7vw, 20px); }
.contact { padding-block: clamp(45px, 7vw, 91px); }
.contact-panel { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 28px; padding: clamp(24px, 5vw, 67px); background: var(--mint); border-radius: 30px; }
.contact-panel h2 { font-size: clamp(43px, 6.1vw, 85px); }
.contact-panel p { margin: 15px 0 22px; max-width: 41ch; }
.contact-details { display: grid; gap: 5px; justify-self: end; font-style: normal; font-size: 15px; }
.contact-details strong { font-size: 20px; }
.contact-details a { width: fit-content; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.footer { border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }

.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 { padding-block: 62px 67px; }
  .hero h1 { font-size: clamp(41px, 10.8vw, 71px); }
  .section-heading { display: grid; align-items: start; margin-bottom: 22px; }
  .service-grid { gap: 9px; }
  .service-card { gap: 25px; min-height: 175px; border-radius: 17px; }
  .service-card h3 { font-size: 20px; }
  .service-card p { font-size: 13px; }
  .project-grid, .about-inner, .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; }
  .contact-details { justify-self: start; }
}
@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; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
