/* Reference composition: persistent visual language, flowing home sections. */
html:has(.studio-page),body.studio-page{height:auto;min-height:100%;overflow-x:clip;overflow-y:auto;scroll-behavior:smooth}
.studio-page{color:var(--brand-brown)}
.site-header{position:relative;z-index:4;display:flex;align-items:center;gap:36px;max-width:1500px;margin:auto;padding:12px 4vw;height:150px}
.site-header .brand{position:static;width:140px;flex:none;margin-right:auto}
.site-header nav{display:flex;align-items:center;gap:clamp(22px,3vw,48px)}
.site-header nav a{font-size:12px;font-weight:500;color:inherit;text-decoration:none;padding:14px 0;transition:color .2s}
.site-header nav a:hover,.site-header nav a[aria-current]{color:#498ac5}
.header-socials{display:flex;gap:10px;margin-left:16px}
.header-socials a{display:grid;place-items:center;width:44px;height:44px;border-radius:16px;background:var(--brand-blue);color:var(--brand-brown);transition:transform .2s}

.header-socials a:hover{transform:translateY(-3px)}
.header-socials svg{width:23px;height:23px;fill:currentColor}
.site-header a:focus-visible{outline:2px solid var(--brand-brown);outline-offset:5px}
.hero-stage{position:relative;max-width:1500px;min-height:640px;margin:auto}
.studio-page .hero{position:relative;top:auto;left:auto;max-width:none;width:53%;margin:0;padding:40px 0 55px 4vw;max-height:none;overflow:visible;z-index:2}
.studio-page .home-hero h1{font-size:clamp(36px,3.65vw,59px);line-height:1.16;letter-spacing:-.055em;width:76vw;max-width:1100px;color:var(--brand-brown);text-shadow:none;pointer-events:none}
.studio-page .home-hero h1 .possibilities{color:#65A8EA;text-shadow:0 1px 1px var(--brand-shadow)}
.studio-page .home-hero .hero-description{max-width:470px;width:85%;font-size:clamp(12px,1.15vw,17px);line-height:1.65;margin-top:34px;padding-left:18px;border-left:2px solid var(--brand-blue)}
.studio-page .home-services{font-size:clamp(10px,1.03vw,15px);grid-template-columns:1fr 1fr;gap:22px 18px;max-width:520px;margin-top:34px;padding:0;background:none;scroll-margin-top:35px}
.home-services li{gap:12px;white-space:nowrap}
.platform-icons{display:inline-flex;gap:4px;margin-left:-6px;align-items:center}
.platform-icons svg{width:16px;height:18px}
.studio-page #scene{position:absolute;right:0;top:120px;width:54%;height:530px;min-height:0;z-index:1;touch-action:pan-y}
.studio-page .keyboard-hint{top:0;left:24%;width:70%;font-size:10px}
.studio-page .keyboard-arrow{top:42px;right:12%;height:66px;width:35px}
.home-details{position:relative;z-index:2;max-width:1500px;margin:10px auto 64px;padding:0 4vw}
.glass-frame{border:1px solid rgba(255,255,255,.8);border-radius:30px;background:linear-gradient(120deg,rgba(255,249,242,.36),rgba(255,249,242,.08));box-shadow:inset 0 0 0 1px rgba(169,141,123,.13),0 14px 40px rgba(59,36,24,.035)}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);padding:36px 28px;scroll-margin-top:30px}
.benefit{display:flex;align-items:center;gap:18px;padding:0 24px;border-right:1px solid rgba(169,141,123,.35)}
.benefit:first-child{padding-left:0}.benefit:last-child{border:0;padding-right:0}
.benefit-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:16px;background:var(--brand-blue)}
.benefit-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.benefit h2{font-size:clamp(11px,1.1vw,17px);line-height:1.6;margin:0;font-weight:500}
.project-card{margin-top:32px;display:grid;grid-template-columns:.9fr 1.25fr;align-items:center;min-height:410px;overflow:hidden;scroll-margin-top:30px}
.project-copy{padding:45px 0 45px 40px;position:relative;z-index:1}
.eyebrow{font-size:10px;letter-spacing:.16em;margin:0 0 20px}
.project-copy h2{font-size:clamp(26px,3vw,45px);line-height:1.22;letter-spacing:-.05em;margin:0 0 20px;font-weight:600}
.project-intro{font-size:14px;margin-bottom:24px}
.project-tags{list-style:none;display:flex;gap:8px;flex-wrap:wrap;margin:0;padding:0;max-width:400px}
.project-tags li{font-size:10px;line-height:1.6;padding:7px 11px;border-radius:20px;background:rgba(255,249,242,.55)}
.project-visual{padding:40px 30px 40px 15px;perspective:1200px;min-width:0}
.laptop{transform:rotateY(-12deg) rotateX(7deg) rotateZ(-3deg);filter:drop-shadow(8px 26px 18px rgba(59,36,24,.24))}
.laptop-screen{background:linear-gradient(135deg,#6d6864,#171614 18%,#47433e);padding:12px 10px 17px;border-radius:16px 16px 4px 4px;border:1px solid #a69d93;position:relative}
.laptop-screen::before{content:'';position:absolute;top:5px;left:50%;width:4px;height:4px;background:#101010;border-radius:50%}
.laptop-screen img{display:block;width:100%;height:auto;aspect-ratio:1400/725;object-fit:cover;border-radius:5px}
.laptop-base{height:16px;margin:0 -5%;border-radius:2px 2px 50% 50%/2px 2px 12px 12px;background:linear-gradient(#d4c9bc,#a99f95 35%,#635e58 85%,#b7ada1);box-shadow:0 2px 2px #51443d}
.laptop-base::before{content:'';display:block;margin:auto;width:17%;height:5px;background:#8c8279;border-radius:0 0 8px 8px}
.studio-page .legal-footer{position:relative;margin-top:25px;padding:22px 20px}
.studio-page.show-contacts .hero-stage{min-height:calc(100svh - 225px)}
.studio-page.show-contacts .contact-panel{padding-top:95px;padding-bottom:70px}
.studio-page.show-contacts #scene{top:0;height:100%;min-height:480px}
@media(min-width:1500px){.studio-page .home-hero h1{width:1100px}.studio-page .hero{padding-left:60px}.home-details{padding:0 60px}}
@media(max-width:1000px) and (min-width:701px){.site-header{gap:18px;height:125px}.site-header .brand{width:110px}.site-header nav{gap:18px}.site-header nav a{font-size:10px}.header-socials{margin-left:0}.header-socials a{width:38px;height:38px}.hero-stage{min-height:600px}.studio-page .hero{width:57%;padding-top:25px}.studio-page .home-hero h1{font-size:35px;width:88vw}.studio-page #scene{top:145px;height:440px;width:53%}.studio-page .home-services{font-size:10px;gap:18px 8px}.home-services li{gap:7px}.platform-icons{gap:2px}.platform-icons svg{width:13px}.benefit{padding:0 13px;gap:12px}.benefits{padding:26px 20px}.benefit-icon{width:38px;height:38px}.project-copy{padding-left:28px}.project-card{min-height:340px}}
@media(max-width:700px){
.site-header{height:auto;min-height:150px;display:grid;grid-template-columns:1fr auto;gap:6px 20px;padding:6px 20px 18px}.site-header .brand{width:100px;margin:0}.header-socials{grid-column:2;grid-row:1;margin:0}.site-header nav{grid-column:1/-1;justify-content:space-between;gap:10px}.site-header nav a{font-size:10px;padding:9px 0}.header-socials a{width:40px;height:40px;border-radius:14px}
.hero-stage{min-height:0}.studio-page .hero{width:auto;margin:0;padding:20px 20px 0}.studio-page .home-hero h1{font-size:clamp(27px,7.1vw,48px);line-height:1.15;width:auto;letter-spacing:-.05em}.studio-page .home-hero .hero-description{width:100%;font-size:12px;margin-top:24px;padding-left:12px}.studio-page .home-services{font-size:10px;gap:18px 8px;margin-top:26px;max-width:none}.home-services li{gap:7px}.platform-icons{gap:3px;margin-left:-3px}.platform-icons svg{width:13px;height:16px}
.studio-page #scene{position:relative;top:auto;right:auto;width:100%;height:400px;min-height:0;margin-top:32px}.studio-page .keyboard-hint{top:0;left:10%;width:80%;font-size:10px}.studio-page .keyboard-arrow{top:36px;right:18%;height:65px}
.home-details{padding:0 20px;margin:0 auto 30px}.glass-frame{border-radius:23px}.benefits{grid-template-columns:1fr;padding:8px 24px}.benefit,.benefit:first-child,.benefit:last-child{padding:20px 0;border-right:0;border-bottom:1px solid rgba(169,141,123,.25);gap:18px}.benefit:last-child{border-bottom:0}.benefit h2{font-size:12px}.benefit h2 br{display:none}.benefit-icon{width:40px;height:40px;border-radius:14px}.project-card{grid-template-columns:1fr;margin-top:22px}.project-copy{padding:28px 25px 0}.project-copy h2{font-size:28px}.project-intro{font-size:12px}.eyebrow{font-size:9px;margin-bottom:16px}.project-tags li{font-size:9px}.project-visual{padding:35px 25px 40px}.laptop-screen{padding:9px 7px 12px;border-radius:10px 10px 3px 3px}.laptop-base{height:11px}.studio-page.show-contacts .hero-stage{min-height:0}.studio-page.show-contacts .contact-panel{padding:28px 20px 0}.studio-page.show-contacts #scene{height:400px;min-height:0;margin-top:35px}.studio-page .legal-footer{margin:0;font-size:9px}
}
@media(prefers-reduced-motion:reduce){html:has(.studio-page){scroll-behavior:auto}.header-socials a{transition:none}}

.studio-page .home-hero h1 .technology-gradient{display:inline-block;background:linear-gradient(to bottom,var(--brand-brown) 0%,var(--brand-brown) 50%,#65A8EA 50%,#65A8EA 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none}

/* Centered menu and higher keyboard composition. */
.site-header nav{position:absolute;left:50%;transform:translateX(-50%)}
.site-header nav span{font-size:12px;font-weight:500;color:inherit;padding:14px 0;cursor:default;white-space:nowrap}
.studio-page:not(.show-contacts) #scene{top:-65px}
@media(max-width:1000px) and (min-width:701px){.site-header nav span{font-size:10px}.studio-page:not(.show-contacts) #scene{top:-30px}}
@media(max-width:700px){.site-header nav{position:static;transform:none;justify-content:center;gap:20px}.site-header nav span{font-size:10px;padding:9px 0}.studio-page:not(.show-contacts) #scene{top:auto;margin-top:12px}}

/* Polished chrome lettering: bright faces and sharp reflected bands. */
.studio-page .home-hero h1 .technology-gradient{background:linear-gradient(178deg,#fafcff 0%,#a3b0bb 18%,#f8fcff 33%,#fff 43%,#56616b 47%,#a8b4bf 52%,#f5faff 65%,#b6c4ce 78%,#faffff 88%,#788793 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:.45px rgba(70,81,91,.55);filter:drop-shadow(0 1px 0 #f7fbff) drop-shadow(0 2px 1px rgba(59,36,24,.23));text-shadow:none}

.platform-icons{align-items:center;gap:5px;line-height:1;color:var(--brand-brown)}
.platform-icons svg{display:block;flex:none;width:16px;height:18px}
@media(max-width:1000px){.platform-icons svg{width:14px;height:16px}}

/* Identical keyboard geometry for home and contacts. */
@media(min-width:701px){
 .studio-page .hero-stage,.studio-page.show-contacts .hero-stage{min-height:max(480px,calc(100svh - 225px))}
 .studio-page #scene,.studio-page:not(.show-contacts) #scene,.studio-page.show-contacts #scene{position:absolute;top:0;right:0;height:max(480px,calc(100svh - 225px));min-height:0;margin-top:0}
}
@media(max-width:700px){
 .studio-page .hero,.studio-page.show-contacts .contact-panel{min-height:390px}
 .studio-page #scene,.studio-page:not(.show-contacts) #scene,.studio-page.show-contacts #scene{position:relative;top:auto;right:auto;height:400px;min-height:0;margin-top:32px}
}
@media(max-width:360px){.studio-page .hero,.studio-page.show-contacts .contact-panel{min-height:440px}}

.studio-page .home-hero h1 .technology-gradient{background:none;color:#896650;-webkit-text-fill-color:#896650;-webkit-text-stroke:0;filter:none;text-shadow:none}

.project-card.glass-frame{border:0;box-shadow:0 14px 40px rgba(59,36,24,.035)}

.menu-detail { display: none; }
.menu-detail:target { display: block; padding: 24px 0; scroll-margin-top: 16px; }
.menu-detail p { max-width: 44em; line-height: 1.6; }

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: clamp(54px, 16vw, 90px) minmax(0, 1fr) auto;
    min-height: 0;
    padding: 10px clamp(8px, 3vw, 20px);
    gap: 8px;
  }
  .site-header .brand { width: 100%; }
  .site-header nav {
    grid-area: 1 / 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    justify-self: center;
    width: 100%;
    max-width: 250px;
  }
  .site-header nav a {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 4px 1px;
    font-size: clamp(9px, 2.4vw, 12px);
    border: 0;
    border-radius: 10px;
    background: transparent;
  }
  .header-socials { grid-area: 1 / 3; flex-direction: column; gap: 4px; }
  .header-socials a { width: 34px; height: 34px; border-radius: 10px; }
  .header-socials svg { width: 18px; height: 18px; }
  .hero-stage { display: flex; flex-direction: column; }
  .studio-page #scene,
  .studio-page:not(.show-contacts) #scene,
  .studio-page.show-contacts #scene {
    order: -1;
    margin: 0;
    height: auto;
    aspect-ratio: 1.12;
  }
  .studio-page .hero,
  .studio-page.show-contacts .contact-panel { min-height: 0; padding: 12px 20px 24px; }
}

.studio-page .hero-stage { min-height: 0; }
.studio-page:not(.show-contacts) #scene {
  position: relative;
  inset: auto;
  margin: 0 auto;
}
.section-content { max-width: 1500px; margin: 0 auto; padding: 0 4vw 32px; }
.section-content .hero { width: auto; padding: 12px 0; }
.section-content .menu-detail:not([hidden]) { display: block; }
.section-content .project-card { margin-top: 0; }
@media (min-width: 701px) {
  .studio-page:not(.show-contacts) #scene { height: clamp(280px, 44vh, 530px); }
}

@media (min-width: 701px) {
  body.studio-page {
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    grid-template-rows: auto 1fr auto;
    align-content: start;
  }
  .site-header, .studio-page .legal-footer { grid-column: 1 / -1; width: 100%; }
  .studio-page .hero-stage {
    grid-area: 2 / 2;
    width: 100%;
    align-self: start;
  }
  .studio-page:not(.show-contacts) #scene {
    width: 100%;
    height: clamp(380px, min(68vw, 77vh), 900px);
  }
  .section-content {
    grid-area: 2 / 1;
    align-self: center;
    width: 100%;
    padding: 24px 0 32px 4vw;
  }
  .section-content .home-hero h1 { width: auto; font-size: clamp(29px, 3.1vw, 59px); }
  .section-content .project-card { grid-template-columns: 1fr; }
}

#intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 52px);
  color: var(--brand-brown);
  background: #f2e8da;
  touch-action: none;
  transition: transform 330ms cubic-bezier(.76, 0, .92, .48);
}
#intro-curtain.is-leaving { transform: translateY(-101%); }
.intro-masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
:root { --site-logo-width: clamp(94px, 10vw, 146px); }
.intro-masthead img { width: var(--site-logo-width); height: auto; flex: none; }
.intro-masthead p {
  max-width: 27em; margin: 0; text-align: right;
  font-size: clamp(10px, 1vw, 14px); line-height: 1.5; text-wrap: balance;
}
.intro-progress {
  font-size: clamp(64px, 13vw, 200px); font-weight: 600;
  line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  #intro-curtain { transition: none; }
}

.intro-masthead p span { color: #65A8EA; }

.home-statement {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vh, 28px) clamp(22px, 7vw, 112px) clamp(26px, 5vh, 60px);
}
.home-statement p {
  max-width: 32em;
  margin: 0;
  color: var(--brand-brown);
  font-size: clamp(17px, 2.25vw, 36px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.home-statement .statement-word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .statement-word, [data-reveal-title] span {
    display: inline-block;
    opacity: calc(.25 + .75 * var(--clarity, 1));
    filter: blur(calc(6px * (1 - var(--clarity, 1))));
    transform: scale(calc(.96 + .04 * var(--clarity, 1)));
  }
}
@media (max-width: 700px) {
  .section-content:has(.home-hero:not([hidden])) { padding-bottom: 0; }
}

.home-statement .statement-accent { color: #65A8EA; }

.offerings {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 0 clamp(18px, 4vw, 60px) clamp(32px, 5vw, 72px);
  color: var(--brand-brown);
  padding-bottom: calc(clamp(32px, 5vw, 72px) + 12px);
}
.offering {
  grid-column: span 2;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 42px);
  border-radius: 28px;
  background: linear-gradient(150deg, #fffcf7, #fbf3e9);
}
.offering:nth-child(n+4) { grid-column: span 3; }
.offering-blue { background: linear-gradient(145deg, #eff6fe, #dceafa); }
.offering-icon {
  display: block;
  width: clamp(120px, 10vw, 140px);
  height: clamp(104px, 9vw, 126px);
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .offering-icon { width: 100px; height: 92px; }
}
.offering h2 {
  color: #65A8EA;
  max-width: 27em;
  margin: 0 0 12px;
  font-size: clamp(16px, 1.43vw, 23px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.offering p {
  margin: 0;
  font-size: clamp(13px, 1.03vw, 16px);
  font-weight: 400;
  line-height: 1.75;
}
@media (min-width: 701px) and (max-width: 1050px) {
  .offering, .offering:nth-child(n+4) { grid-column: span 3; }
  .offering:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .offerings { grid-template-columns: minmax(0, 1fr); }
  .offering, .offering:nth-child(n+4) { grid-column: 1; border-radius: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .offerings > * {
    --side: clamp(-44px, -3vw, -15px);
    --turn: -3deg;
    --travel: 0;
    transform: translate(calc(var(--side) * var(--travel)), calc(68px * var(--travel)))
      rotate(calc(var(--turn) * var(--travel))) scale(calc(1 - .055 * var(--travel)));
  }
  .offerings > :nth-child(even) {
    --side: clamp(15px, 3vw, 44px);
    --turn: 3deg;
  }
}

.new-work-title, .studio-about h2, .studio-contacts h2 {
  text-align: center;
  grid-column: 1 / -1;
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 60px);
  color: var(--brand-brown);
  font-size: clamp(26px, 3.1vw, 48px);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.new-work-title span:last-child, .studio-about h2 span:last-child, .studio-contacts h2 span:last-child { color: #65A8EA; }

.work-gallery {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(22px, 3vw, 44px) clamp(18px, 4vw, 60px) clamp(36px, 5vw, 72px);
}
.restaurant-work {
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3.2vw, 48px) clamp(14px, 2vw, 32px) clamp(20px, 2.4vw, 34px);
  color: var(--brand-brown);
  background: var(--brand-surface);
  border-radius: 28px;
}
.work-placeholder { display: grid; place-items: center; min-height: 180px; text-align: center; }
@media (max-width: 700px) {
  .work-gallery { grid-template-columns: minmax(0, 1fr); }
  .restaurant-work { border-radius: 22px; }
}
/* Use the original 1000px product photograph, framed from (58,228) to (942,772). */
.restaurant-work-link {
  display: block;
  position: relative;
  aspect-ratio: 884 / 544;
  color: inherit;
  text-decoration: none;
}
.restaurant-work-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/macbook-front.webp") center / 113.1222% auto no-repeat;
  mix-blend-mode: multiply;
}
.restaurant-work-link:focus-visible { outline: 3px solid #65a8ea; outline-offset: 5px; border-radius: 12px; }
.notebook-display {
  position: absolute;
  left: 8.94%;
  top: 2.57%;
  width: 82.12%;
  height: 87.32%;
  overflow: hidden;
  border-radius: 1.65% / 2.52%;
  background: #050506;
}
.notebook-display img { display: block; width: 100%; height: 100%; object-fit: cover; }
.notebook-display::after {
  content: "";
  position: absolute;
  top: .54%;
  left: 50%;
  transform: translateX(-50%);
  width: 3.86%;
  aspect-ratio: 28 / 15;
  border-radius: 999px;
  background: #030303;
}
.restaurant-work figcaption { margin-top: clamp(18px, 2.6vw, 36px); text-align: center; }
.restaurant-work figcaption span { font-size: clamp(11px, 1vw, 14px); }
.restaurant-work h3 { font-size: clamp(22px, 3vw, 40px); font-weight: 500; margin: .18em 0; letter-spacing: -.04em; }

.back-to-top {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  justify-self: end;
  margin: clamp(32px, 5vw, 72px) clamp(18px, 4vw, 60px) 0 auto;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(150deg, #fffcf7, #fbf3e9);
  color: var(--brand-brown);
  font: 500 12px/1.5 var(--brand-font);
  cursor: pointer;
}
.back-to-top:focus-visible { outline: 2px solid var(--brand-brown); outline-offset: 3px; }

#uslugi, #works { scroll-margin-top: 20px; }
.site-header nav [aria-disabled="true"] { opacity: .58; }
.pricing-content { position: relative; grid-column: 1 / -1; width: min(100%, 1440px); margin: auto; min-height: 55vh; padding: clamp(36px, 6vw, 88px) 4vw; }
.pricing-content h1 { font-size: clamp(28px, 4vw, 60px); letter-spacing: -.05em; }
@media (max-width: 700px) {
  .site-header nav span { display: grid; place-items: center; font-size: clamp(9px, 2.4vw, 12px); padding: 4px 1px; }
  .site-header nav a { text-align: center; }
}

@media (max-width: 700px) {
  :root { --menu-mark: 70px; --site-logo-width: calc(var(--menu-mark) * 1.34); }
  .site-header {
    /* Two 34px menu rows and their 2px gap. */
    --header-side: var(--site-logo-width);
    grid-template-columns: var(--header-side) minmax(0, 1fr) var(--header-side);
    align-items: center;
  }
  .site-header .brand,
  .site-header .header-socials a {
    width: var(--header-side);
    height: var(--header-side);
    display: grid;
    place-items: center;
  }
  .site-header .brand img { width: var(--site-logo-width); }
  .site-header .header-socials { justify-self: end; }
  .site-header .header-socials a { background: transparent; }
  .site-header .header-socials svg {
    width: calc(var(--menu-mark) * 1.115);
    height: calc(var(--menu-mark) * 1.115);
  }
  .site-header nav {
    width: fit-content;
    max-width: 100%;
    grid-template-columns: auto minmax(0, auto);
    gap: 2px clamp(10px, 3vw, 20px);
    justify-self: center;
  }
  .site-header nav :is(a, span) {
    justify-items: start;
    align-content: center;
    text-align: left;
    padding-inline: 0;
    line-height: 1.35;
  }
}

.offering { position: relative; }
.service-link { color: inherit; text-decoration: none; }
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.offering:focus-within { outline: 2px solid var(--brand-brown); outline-offset: 3px; }

.studio-figures {
  position: relative;
  grid-column: 1 / -1;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 60px) clamp(32px, 5vw, 72px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  color: var(--brand-brown);
}
.studio-figures li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: clamp(16px, 2vw, 30px) 0 0;
  border-top: 1px solid var(--brand-line);
  text-align: center;
}
.studio-figures strong {
  font-size: clamp(48px, 6.6vw, 100px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.065em;
}
.studio-figures span {
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .025em;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .studio-figures { grid-template-columns: 1fr; gap: 0; }
  .studio-figures li {
    grid-template-columns: minmax(116px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    justify-items: start;
    padding: 14px 0;
    text-align: left;
  }
}

.work-actions {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 16px clamp(28px, 4vw, 60px);
  margin-bottom: calc(clamp(28px, 4vw, 60px) + 12px);
}
.work-pricing-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--brand-blue);
  color: var(--brand-brown);
  font: 500 14px/1.5 var(--brand-font);
  text-decoration: none;
}
.work-pricing-link:hover { background: #a3d0ff; }
.work-pricing-link:focus-visible { outline: 2px solid var(--brand-brown); outline-offset: 3px; }

.work-actions .header-socials {
  flex-direction: row;
  align-items: center;
  margin: 0;
}

.work-actions .header-socials a { width: 44px; height: 44px; }
.work-actions a { --action-radius: 16px; }
.work-actions .work-pricing-link, .work-actions .header-socials a { border-radius: var(--action-radius); }

.studio-about, .studio-contacts { position: relative; grid-column: 1 / -1; padding-bottom: clamp(28px, 4vw, 60px); scroll-margin-top: 20px; }

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px;
  margin-top: clamp(20px, 3vw, 36px);
}
.contact-actions .telegram-link { margin: 0; box-shadow: none; }


.studio-about { --studio-gap: clamp(20px, 2.4vw, 36px); }
.studio-profile {
  width: min(100%, 1100px);
  margin: var(--studio-gap) auto 0;
  padding-block: var(--studio-gap);
  border-block: 1px solid rgba(83, 57, 39, .19);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(26px, 5vw, 76px);
  text-align: left;
}
.studio-role { margin: 0 0 10px; font-size: 14px; }
.studio-profile h3 {
  margin: 0;
  color: #65a8ea;
  font-size: clamp(27px, 3.5vw, 48px);
  line-height: 1.08;
}
.studio-story { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.65; }
.studio-profile > div { display: grid; align-content: start; gap: var(--studio-gap); }
.studio-profile p { margin: 0; }
.studio-lead { font-size: clamp(21px, 2.3vw, 34px); line-height: 1.3; font-weight: 600; }
.studio-profile > div { min-width: 0; }
.studio-profile + .studio-profile { margin-top: 0; border-top: 0; }
.studio-profile h3 strong { display: block; }
.studio-profile .founder-title { display: block; font-size: clamp(18px, 1.35vw, 20px); font-weight: 500; line-height: 1.3; text-transform: lowercase; }
.studio-profile h4 { margin: 0; }
.team-number {
  display: inline-block;
  color: #65a8ea;
  font-size: clamp(96px, 14vw, 196px);
  line-height: 1;
  transform-origin: left center;
}
.studio-roles { width: 100%; border-collapse: collapse; margin: 0; font-size: clamp(12px, 1.05vw, 16px); }
.studio-roles caption { text-align: left; padding-bottom: .65em; }
.studio-roles td, .studio-roles th { text-align: left; border-block-start: 1px solid rgba(83, 57, 39, .16); padding: .75em .4em .75em 0; }
@media (max-width: 700px) {
  .studio-profile { width: calc(100% - 40px); grid-template-columns: 1fr; gap: var(--studio-gap); }
}

.studio-accent, .studio-roles th { color: #65a8ea; }
.studio-profile :is(h3, h4, p, table) { transform-origin: left center; }

.new-work-title::before,
#studio-heading::before {
  content: "";
  display: block;
  max-width: 1100px;
  margin: 0 auto clamp(20px, 3vw, 42px);
  border-top: 1px solid rgba(83, 57, 39, .19);
}

@media (min-width: 701px) {
  .site-header { --header-mark: clamp(48px, 5vw, 70px); }
  .site-header .brand { width: var(--site-logo-width); }
  .site-header .header-socials a {
    width: calc(var(--header-mark) * 1.34);
    height: calc(var(--header-mark) * 1.34);
    color: var(--brand-brown);
    background: transparent;
  }
  .site-header .header-socials svg {
    width: calc(var(--header-mark) * 1.16);
    height: calc(var(--header-mark) * 1.16);
  }
}

.work-gallery {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
}
.work-strip {
  --work-gap: clamp(12px, 1.5vw, 22px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--work-gap)) / 2);
  gap: var(--work-gap);
  overflow: clip;
}
@media (max-width: 700px) {
  .work-strip { grid-auto-columns: 100%; }
}
.work-gallery { grid-template-rows: 1fr auto 1fr auto; }
.work-arrows { display: flex; justify-content: flex-end; gap: 8px; }
.work-arrows button {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--brand-blue); color: var(--brand-brown);
  font: 24px/1 system-ui, sans-serif; cursor: pointer;
}
.work-arrows button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Direct swipe, trackpad and mouse drag for the existing looping work rows. */
.work-strip { touch-action: pan-y pinch-zoom; cursor: grab; }
.work-strip.is-dragging, .work-strip.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.work-strip img { -webkit-user-drag: none; }
.work-strip:focus-visible { outline: 2px solid var(--brand-brown); outline-offset: 4px; border-radius: 16px; }
