:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #131416;
  --text: #f7f4ef;
  --muted: #bbb9b5;
  --line: #353438;
  --red: #e33a42;
  --accent-text: #ff666c;
  --gutter: clamp(20px, 4.5vw, 64px);
  --shell: min(1312px, calc(100% - 2 * var(--gutter)));
  --section-space: clamp(48px, 6vw, 88px);
  --card-pad: clamp(18px, 2vw, 28px);
  font-family: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid #ff8488; outline-offset: 4px; }
::selection { color: #fff; background: #9d2430; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 8; top: .6rem; left: var(--gutter); background: var(--text); color: var(--bg); padding: .6rem .9rem; }
.site-header { position: relative; z-index: 3; border-bottom: 1px solid #28282b; background: #0b0b0d; }
.masthead { min-height: clamp(72px, 6vw, 92px); display: flex; align-items: center; gap: clamp(.65rem, 1.4vw, 1.4rem); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: clamp(6.4rem, 9vw, 8.1rem); }
.division { border-left: 1px solid #58585a; padding-left: .92rem; font-size: .76rem; font-weight: 650; letter-spacing: .13em; color: #e6e1db; }
.primary-nav { display: flex; gap: clamp(.8rem, 2vw, 2.1rem); margin-left: auto; align-items: center; }
.primary-nav a, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #d4d1ce; text-decoration: none; font-size: .94rem; }
.primary-nav a:is(:hover,:focus-visible), .footer a:is(:hover,:focus-visible) { color: #ffb4a7; }
.language { flex-shrink: 0; position: relative; margin-left: clamp(.2rem, 1vw, 1rem); }
.language summary, .questions summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.language summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .45em; border: 1px solid var(--line); padding: .4rem .75rem; font-size: .88rem; font-weight: 650; }
.language ul { list-style: none; margin: .5rem 0 0; padding: .36rem; position: absolute; right: 0; min-width: 9rem; background: #18181c; border: 1px solid #545054; box-shadow: 0 12px 40px #0007; }
.language summary span:last-child { color: var(--muted); font-size: .76rem; letter-spacing: .06em; }
.language a { display: flex; align-items: center; min-height: 44px; padding: .3rem .8rem; text-decoration: none; }
.language a:hover { background: #28252a; }
.language summary:hover, .language[open] summary { color: #ffb4a7; }
.language a[aria-current] { color: #ff858a; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 3rem; border: 0; font-size: 1rem; font-weight: 680; line-height: 1.24; text-align: center; text-decoration: none; }
.btn-primary { background: #b92330; color: #fff; padding: .8rem 1.25rem; border-radius: 0; }
.btn-primary:hover { background: #c52c37; }
.btn-link { color: #ffb4a7; padding: .5rem 0; }
.btn-link:is(:hover,:focus-visible) { color: #fff; }
main:focus { outline: none; }
.hero { padding-top: var(--section-space); }
.hero h1 { max-width: 100%; font-size: clamp(3rem, 7.2vw, 7.1rem); color: var(--text); }
.studio-intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: clamp(1.15rem, 2.55vw, 2.25rem); }
.studio-intro p { max-width: 52ch; color: #c9c5c0; font-size: clamp(1.04rem, 1.52vw, 1.36rem); line-height: 1.5; }
.studio-inquiry { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .65rem 1.15rem; border: 1px solid #a09790; border-radius: 0; text-align: center; line-height: 1.3; font-size: 1rem; font-weight: 600; }
.studio-inquiry:is(:hover,:focus-visible) { background: #f0e8dd; color: #151516; }
.portfolio { padding-block: var(--section-space); }
.portfolio h2 { padding-top: .85rem; margin-bottom: 1.3rem; border-top: 1px solid #5c585a; font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.25; font-weight: 620; letter-spacing: -.025em; }
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 5vw, 6rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.3rem, 3.9vw, 4.25rem);
  background: #eeeae2;
  color: #211e1d;
  overflow-wrap: anywhere;
}
.project-client { font-weight: 650; line-height: 1.35; }
.project-feature h3 {
  margin-top: .75rem;
  font: italic 400 clamp(2.7rem, 4.6vw, 4.7rem)/1.03 "Instrument Serif", Georgia, serif;
  letter-spacing: -.032em;
}
:lang(zh) .project-feature h3 {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.25;
}
.project-feature-notes { max-width: 54ch; }
.project-feature-notes time { color: #60534b; font-size: .92rem; }
.project-feature-notes p { margin-top: .55rem; line-height: 1.57; }
.project-feature-notes a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .4rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.project-feature-notes a:is(:hover,:focus-visible) { color: #882c23; }
.project-feature-notes a:focus-visible { outline-color: #882c23; }
@media (max-width: 42rem) {
  .project-feature { grid-template-columns: minmax(0, 1fr); }
}
.project-spread { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); gap: clamp(1.4rem, 3.4vw, 3.3rem); }
.project-cover { position: relative; overflow: hidden; height: clamp(13.5rem, 21vw, 20rem); background: #101012; }
.project-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.identity-cover .project-art { object-position: center 51%; }
.project-wordmark { position: absolute; width: clamp(7.6rem, 13vw, 12.7rem); height: auto; left: 7.5%; top: 50%; transform: translateY(-50%); filter: drop-shadow(0 2px 5px #0009); }
.game-cover .project-art { object-position: 50% 45%; }
.project-link { display: block; text-decoration: none; }
.project-spread h3 { margin-top: var(--card-pad); font-size: clamp(1.25rem, 2.05vw, 1.9rem); font-weight: 620; line-height: 1.21; letter-spacing: -.035em; }
.project-link:is(:hover,:focus-visible) h3 { color: #ffb4a7; }
.project-spread article p { margin-top: .75rem; max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.58; }
.process-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin: 2.3rem 0 0; padding: 0; list-style: none; }
@media (max-width:42rem) {
  .hero h1 { font-size: clamp(2.65rem, 10.9vw, 4.4rem); }
  .studio-intro { align-items: start; flex-direction: column; gap: .6rem; }
  .project-spread, .process-list { grid-template-columns: minmax(0, 1fr); }
  .project-spread { gap: 2.15rem; }
  .project-cover { height: auto; aspect-ratio: 1.85; }
  .process-list { gap: 1.7rem; margin-top: 1.65rem; }
}
.block { padding-block: var(--section-space); border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(2.05rem, 4vw, 4.25rem); line-height: 1.045; letter-spacing: -.052em; font-weight: 650; }
.block h3 { font-size: clamp(1.32rem, 2vw, 1.85rem); letter-spacing: -.032em; line-height: 1.16; font-weight: 670; }
.block p { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; }
.section-split { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); column-gap: clamp(2.2rem, 7vw, 7rem); align-items: start; }
.section-lead p { margin-top: 1.2rem; max-width: 35ch; }
.service-list article, .market-list article { padding: var(--card-pad) 0; border-top: 1px solid var(--line); }
.service-list article:first-child, .market-list article:first-child { padding-top: .45rem; border-top: 0; }
.service-list article:last-child, .market-list article:last-child { padding-bottom: 0; }
.service-list p, .market-list p, .process-list p { margin-top: .65rem; max-width: 54ch; }
.guide-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: .16em; color: #ffb4a7; }
.guide-link:is(:hover,:focus-visible) { color: #fff; }
.markets { background: #101113; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 3.7rem; padding: 1rem .35rem 1rem 0; font-size: clamp(1.02rem, 1.35vw, 1.22rem); font-weight: 650; line-height: 1.4; }
.questions summary::after { content: "+"; flex: none; color: var(--accent-text); font-size: 1.35rem; font-weight: 400; line-height: 1; }
.questions details[open] > summary::after { content: "−"; }
.questions details p { margin: 0 1.4rem 1.2rem 0; }
.assistant-section { background: #171719; }
.assistant-header { margin-bottom: clamp(1.3rem, 3vw, 2.65rem); }
.assistant-header p { margin-top: .8rem; max-width: 62ch; }
.footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer-layout, .footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; justify-content: space-between; }
.footer strong { display: block; font-size: 1.1rem; }
.footer-layout > div > a { display: inline-block; padding-block: .55rem; color: var(--muted); }
:lang(zh) .hero h1, :lang(zh) .block h2, :lang(zh) .block h3 { letter-spacing: -.025em; line-height: 1.15; }
@media (max-width: 54rem) {
  .section-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
}
@media (max-width: 42rem) {
  .masthead { min-height: 0; flex-wrap: wrap; gap: 0 .75rem; padding-top: .45rem; }
  .brand img { max-width: 34vw; }
  .division { padding-left: .7rem; }
  .language { margin-left: auto; }
  .language ul { min-width: min(9rem, calc(100vw - 2 * var(--gutter))); }
  .primary-nav { order: 1; flex: 0 0 100%; min-width: 0; flex-wrap: wrap; gap: 0 1rem; margin: 0; }
  .primary-nav, .hero, .block, .footer, .service-guide { overflow-wrap: anywhere; }
  :lang(de) :is(.hero, .block, .footer, .service-guide) p { hyphens: auto; }
  .dario-terminos summary { max-width: 100%; }
  .primary-nav a { min-height: 44px; font-size: .9rem; }
  .section-split { grid-template-columns: minmax(0, 1fr); }
  .section-split { gap: 1.5rem; }
  .footer-layout { align-items: start; flex-direction: column; }
}
@media (max-width: 24rem) {
  .primary-nav { column-gap: .85rem; }
  .language summary { min-width: 44px; padding-inline: .45rem; }
  .language summary span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .language summary span:last-child { font-size: .86rem; color: var(--text); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: background-color .16s ease; }
}

.service-guide { padding-block: var(--card-pad) var(--section-space); }
.guide-crumb { display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; color:var(--muted); font-size:.95rem; }
.guide-crumb a { display:inline-flex; align-items:center; min-height:44px; }
.guide-crumb a:is(:hover,:focus-visible) { color:#ffb4a7; }
.guide-crumb span { color:var(--accent-text); }
.guide-head { margin-block:var(--section-space); max-width:68rem; }
.guide-head h1 { max-width:21ch; font-size:clamp(2.5rem, 6.3vw, 5.6rem); line-height:1.04; letter-spacing:-.055em; }
.guide-head p { margin-top:1.5rem; max-width:64ch; font-size:clamp(1.05rem, 2.2vw, 1.45rem); color:var(--muted); }
.guide-sections { border-bottom:1px solid var(--line); }
.guide-sections section { display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); align-items:baseline; gap:clamp(1.4rem, 7vw, 6rem); padding-block:var(--card-pad); border-top:1px solid var(--line); }
.guide-sections h2 { font-size:clamp(1.3rem, 2.5vw, 1.8rem); }
.guide-sections p { color:var(--muted); max-width:63ch; line-height:1.7; }
.guide-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.5rem; margin-top:var(--card-pad); }
@media (max-width:46rem) { .guide-sections section { grid-template-columns:minmax(0,1fr); gap:.65rem; } }

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/dario-titulares.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
.hero h1 {
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-variation-settings: "wdth" 98;
  letter-spacing: -.04em;
  line-height: 1.055;
  font-kerning: normal;
}
@media (max-width:450px) {
  .hero h1 { font-variation-settings: 'wdth' 94; letter-spacing: -.03em; }
}
html:lang(zh) .hero h1 {
  font-family: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0;
  line-height: 1.18;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/dario-titulares.woff2?v=serif-italic1") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
html:not(:lang(zh)) .hero-accent {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.035em;
}
:lang(de) :is(h1, h2, h3, .studio-inquiry, .btn) { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 32rem) {
  .studio-inquiry { align-self: stretch; }
  .guide-actions .btn-primary { width: 100%; }
}

.dario-terminos {
  margin-block-start: 1.1rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}
.dario-terminos summary, .wa-terms-link, .dario-terminos a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.dario-terminos summary { list-style: none; cursor: pointer; gap: .8rem; }
.dario-terminos summary::after { content: "+"; color: var(--accent-text); }
.dario-terminos[open] > summary::after, .dario-terminos details[open] > summary::after { content: "−"; }
.dario-terminos p { max-width: 74ch; margin-block: .6rem; }
.dario-terminos a, .wa-terms-link { text-decoration: underline; text-underline-offset: .2em; color: #ffb4a7; }
.wa-terms-link { font-size: .9rem; }
