@import url("./fonts.css");

:root {
  color-scheme: dark;
  --ink: #f1f2f4;
  --muted: #b2b5bf;
  --paper: #101114;
  --panel: #181a1f;
  --edge: #30333b;
  --accent: #c5d3ea;
  --radius: 22px;
  --gutter: clamp(18px, 4vw, 62px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1440px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; z-index: 5; top: 8px; left: 10px; background: var(--ink); color: var(--paper); padding: 8px 14px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { padding-top: 17px; position: relative; z-index: 2; }
.home-page .site-header { position: absolute; inset: 0 0 auto; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: min(1250px, calc(100% - var(--gutter) * 2)); padding: 9px 12px 9px 22px; border: 1px solid var(--edge); border-radius: 100px; background: #18191e; }
.home-page .header-row { background: #111217cc; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-weight: 800; font-size: 24px; letter-spacing: -.065em; white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; background: url("webalf-mark.svg") center / contain no-repeat; }
.brand-word small { margin-left: 4px; font-size: .53em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 39px); color: var(--muted); font-size: 13px; font-weight: 600; }
.site-nav a:hover, .footer a:hover, .text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.languages { position: relative; }
.languages summary { min-height: 38px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--edge); border-radius: 40px; list-style: none; cursor: pointer; padding: 0 13px; font-size: 13px; font-weight: 700; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.lang-menu { position: absolute; z-index: 5; right: 0; top: calc(100% + 10px); padding: 5px; border: 1px solid var(--edge); background: var(--panel); border-radius: 14px; box-shadow: 0 14px 44px #0007; min-width: 160px; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 7px; font-size: 14px; }
.lang-menu a span { color: var(--accent); font-size: 12px; }
.lang-menu a:hover, .lang-menu [aria-current] { background: #292c34; }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; min-height: max(660px, 90svh); text-align: center; padding-block: 140px 110px; background: #0b0c0f; }
.hero::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #0a0b0d82, transparent 40%, #0a0b0de8 91%, #0a0b0d),
    radial-gradient(ellipse at center, #0a0b0db8, #0a0b0d40 72%),
    url("studio-background.webp") var(--hero-position, center) 53% / cover no-repeat;
}
.kicker { display: inline-block; color: var(--accent); font-weight: 650; letter-spacing: .055em; font-size: 12px; }
.kicker--hero { padding: 6px 14px; border: 1px solid #393d48; border-radius: 100px; background: #1b1e25; }
.hero h1 { max-width: 1180px; margin: 29px auto 0; font-size: clamp(42px, 6.7vw, 106px); line-height: 1; letter-spacing: -.068em; font-weight: 760; text-wrap: balance; }
.hero h1 span { display: block; color: #c5c9d2; margin-top: .08em; }
.hero-intro { max-width: 610px; margin: 27px auto 0; color: #e1e1e5; font-size: clamp(16px, 1.6vw, 20px); text-wrap: pretty; }
.hero-actions, .contact-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-actions { justify-content: center; margin-top: 30px; }
.button { display: inline-flex; min-height: 49px; gap: 14px; align-items: center; justify-content: center; border-radius: 40px; padding: 9px 20px; border: 1px solid transparent; font-size: 14px; font-weight: 720; transition: background .18s, border-color .18s; }
.button--accent, .button--ink { background: var(--ink); color: #15171b; }
.button--accent:hover, .button--ink:hover { background: var(--accent); }
.button--outline { border-color: #4a4d58; background: #1c1e25; }
.button--outline:hover { background: #292d36; border-color: #787f8f; }
.arrow { display: inline-block; flex: none; width: .82em; height: .82em; color: inherit; background: currentColor; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }
.arrow--corner { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M5 3h8v8' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.arrow--down, .arrow--up { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12m-5-5 5 5 5-5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.arrow--up { transform: rotate(180deg); }
.icon { width: 1em; height: 1em; flex: none; color: var(--accent); opacity: .95; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; margin-bottom: 22px; }
.section-title { font-size: clamp(33px, 5vw, 64px); font-weight: 730; line-height: 1.08; letter-spacing: -.06em; text-wrap: pretty; }
.section-title--icon { display: flex; align-items: center; gap: .27em; }
.section-head p { max-width: 330px; color: var(--muted); }
.work-section { padding-block: clamp(74px, 10vw, 152px); background: radial-gradient(ellipse at 50% 24%, #22252e 0%, transparent 56%), #0a0b0d; }
.work-section > .wrap { max-width: 1340px; }
.work-section .section-head { justify-content: center; margin-bottom: clamp(32px, 5vw, 68px); }
.project-stack {
  display: grid;
  gap: clamp(24px, 5vh, 54px);
  max-width: 1100px;
  margin-inline: auto;
  isolation: isolate;
}
.project { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; }
.project:is(:hover, :focus-within) { border-color: #80889c; }
.project > a:focus-visible { outline-offset: -4px; }
.project-image { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #272a33; }
.project-image[aria-haspopup] { cursor: zoom-in; }
.project-media { flex: 1; overflow: hidden; aspect-ratio: 1.7; }
.project-media picture { display: block; width: 100%; height: 100%; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-zoom { display: none; position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 37px; height: 37px; background: #12141adb; color: var(--ink); border: 1px solid #fff5; border-radius: 50%; place-items: center; }
[aria-haspopup="dialog"] .project-zoom { display: grid; }
.project-zoom::before { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 4H4v3m5-3h3v3m0 2v3H9m-2 0H4V9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.project-copy:hover .project-title { color: var(--accent); }
.frame-head { display: flex; align-items: center; gap: 5px; padding: 7px 10px; min-height: 28px; background: #242730; color: #d7d9e2; font-size: 10px; line-height: 1; }
.frame-head i { width: 5px; height: 5px; background: #818897; border-radius: 50%; flex: none; }
.frame-head b { font-weight: 570; margin-inline: auto; padding-right: 23px; }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2vw, 27px); }
.project-category { color: var(--accent); font-weight: 600; font-size: 12px; }
.project-title { margin-top: 4px; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.1; font-weight: 730; letter-spacing: -.045em; }
.project-desc { margin: 11px 0 23px; font-size: 14px; color: var(--muted); }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 13px; width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--edge); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.project-arrow { width: 12px; height: 12px; color: var(--accent); }
.project-stack .project { background: #15171b; box-shadow: 0 -8px 24px #0004; }
.project-stack .project-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); align-items: start; gap: 6px clamp(20px, 4vw, 55px); padding: clamp(22px, 3.5vw, 44px); }
.project-stack .project-category { grid-column: 1; }
.project-stack .project-title { grid-column: 1; font-size: clamp(31px, 4.4vw, 53px); }
.project-stack .project-desc { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; font-size: clamp(14px, 1.4vw, 17px); }
.project-stack .project-meta { grid-column: 1 / -1; margin-top: 17px; }
.project[data-project="domo"] .project-media { background: #141519; }
.project[data-project="domo"] .project-media img { object-fit: contain; }
.project--featured[data-project="domo"] .project-media { aspect-ratio: 945 / 496; }
/* Sticky siblings share one scroll range. Later cards naturally paint on top. */
.project-stack .project-media { max-height: min(48vh, 530px); }
.project-stack [data-project="royal-kids"] .project-media { aspect-ratio: 1333 / 521; }
.project-stack .project-media img { object-position: center 27%; }
@media (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  .project-stack { --rim: clamp(4px, .65vw, 9px); }
  .project-stack > .project {
    --level: 0;
    position: sticky;
    top: calc(12px + var(--rim) * var(--level));
    margin-inline: calc(var(--rim) * (5 - var(--level)));
  }
  .project-stack > :nth-child(2) { --level: 1; }
  .project-stack > :nth-child(3) { --level: 2; }
  .project-stack > :nth-child(4) { --level: 3; }
  .project-stack > :nth-child(5) { --level: 4; }
  .project-stack > :nth-child(n+6) { --level: 5; }
  .project-stack > :has(> a:focus-visible) { z-index: 1; }
}
@media (max-width: 720px) {
  .project-stack { --rim: 3px; }
  .project-stack .project-copy { padding: 14px 18px; }
  .project-stack .project-title { font-size: clamp(23px, 6vw, 34px); }
  .project-stack .project-meta { margin-top: 7px; }
}
.portfolio-list { margin-top: clamp(22px, 3vw, 38px); }
.portfolio-list summary { cursor: pointer; color: var(--accent); font-weight: 670; width: fit-content; padding-block: 8px; min-height: 44px; }
.portfolio-list ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 19px; margin: 0; padding: 10px 0 0; list-style: none; }
.portfolio-list a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--edge); font-size: 13px; overflow-wrap: anywhere; }
.portfolio-list a:hover { color: var(--accent); }
.services, .approach { padding-block: clamp(66px, 9vw, 128px); }
.services { --section-photo: url("services-background.webp"); --section-photo-position: right center; border-block: 1px solid #282b34; }
.services .section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.process-wrap { padding-block: clamp(70px, 9vw, 134px); }
.team { --section-photo: url("team-background.webp"); --section-photo-position: left center; padding-block: clamp(66px, 9vw, 128px); border-block: 1px solid #282b34; }
.team-grid, .service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); }
.service { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 38px) 0; border-top: 1px solid #464b58; }
.service-name { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.service-name .icon { width: 31px; height: 31px; }
.service h3, .steps h3, .team-caption h3 { font-size: clamp(18px, 1.8vw, 25px); line-height: 1.17; letter-spacing: -.04em; text-wrap: pretty; }
.service p { margin: 10px 0 16px; color: var(--muted); font-size: 14px; }
.service .service-price { margin: auto 0 0; padding-top: 10px; color: var(--ink); font-size: clamp(23px, 3vw, 42px); line-height: 1; letter-spacing: -.055em; font-weight: 750; }
.service-price span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.integrations, .ai-use { padding-block: clamp(62px, 8vw, 118px); }
.integrations { background: #101114; }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); margin-top: clamp(27px, 4vw, 50px); }
.integration-grid article { min-width: 0; padding-block: 23px 0; border-top: 1px solid var(--edge); }
.integration-grid h3 { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.18; text-wrap: balance; }
.integration-grid p { color: var(--muted); margin-top: 11px; max-width: 39ch; }
.integration-case { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--accent); font-weight: 650; }
.ai-use { --section-photo: url("studio-background.webp"); --section-photo-position: right 68%; border-block: 1px solid var(--edge); }
.ai-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(22px, 6vw, 84px); align-items: center; }
.ai-layout p { background: #13141bea; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--edge); border-radius: var(--radius); color: #dedfe6; font-size: clamp(16px, 1.6vw, 20px); }
.process-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: clamp(24px, 7vw, 106px); }
.process-heading { position: sticky; top: 54px; }
.process-heading .section-title { margin-top: 12px; }
.process-counter { display: block; width: max-content; margin-top: clamp(26px, 5vw, 70px); padding-inline-end: .12em; font-size: clamp(72px, 12vw, 165px); line-height: 1.04; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.035em; color: var(--ink); background: linear-gradient(#fff, #787c88); background-clip: text; color: transparent; }
.steps { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { min-height: 190px; padding: clamp(23px, 4vw, 48px); border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(155deg, #20222a, #131419 78%); }
.steps li::before { content: attr(data-step); display: block; margin-bottom: 15px; color: var(--accent); font-size: 13px; font-weight: 650; }
.steps li.is-current { border-color: #747b8c; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.team-grid { padding: 0; margin: 23px 0 0; list-style: none; }
.team-member { border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.team-portrait { aspect-ratio: 1; overflow: hidden; background: #363638; }
.team-portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--portrait-scale, 1)); transform-origin: var(--portrait-origin, 50% 35%); filter: saturate(.91) sepia(.055) contrast(.98) brightness(var(--portrait-light, 1.025)); }
.team-member[data-member="grigory"] { --portrait-scale: 1.12; --portrait-light: 1.035; }
.team-member[data-member="oksana"] { --portrait-light: 1.075; }
.team-member[data-member="pavel"] { --portrait-scale: 1.18; --portrait-origin: 48% 96%; }
.team-member[data-member="alex"] { --portrait-scale: 1.29; --portrait-origin: 65% 75%; }
.team-caption { padding: 14px 16px 17px; }
.team-caption p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.approach { background: linear-gradient(160deg, #181b22, #101114 74%); }
.approach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.13fr); gap: clamp(15px, 2vw, 28px); grid-template-areas: "title title feature" "first second feature" "wide wide feature"; }
.approach-grid .section-head { grid-area: title; margin-bottom: clamp(2px, 2vw, 24px); }
.approach-grid article { padding: clamp(23px, 3vw, 40px); min-width: 0; border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(150deg, #24262e, #14151a 80%); }
.approach-grid article:nth-of-type(1) { grid-area: first; }
.approach-grid article:nth-of-type(2) { grid-area: second; }
.approach-grid article:nth-of-type(3) { grid-area: wide; }
.approach-grid .approach-feature { grid-area: feature; display: flex; align-items: flex-end; min-height: 370px; padding: 16px; background: linear-gradient(180deg, #11131a26, #101115e6), url("studio-background.webp") 90% center / cover; }
.approach-feature > div { padding: 21px; background: #111217ed; border: 1px solid #51545e; border-radius: calc(var(--radius) - 6px); }
.approach-grid h3 { font-size: clamp(19px, 2vw, 27px); line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.approach-grid p { color: var(--muted); font-size: 15px; margin-top: 7px; }
.guides, .faq { padding-block: clamp(64px, 8vw, 118px); }
.guides { --section-photo: url("guides-background.webp"); --section-photo-position: left center; border-top: 1px solid #282b34; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); margin-top: clamp(28px, 4.5vw, 62px); }
.guide a { display: flex; flex-direction: column; height: 100%; }
.guide-cover { display: grid; place-items: center; text-align: center; min-height: clamp(166px, 18vw, 240px); padding: clamp(20px, 3vw, 38px); border: 1px solid var(--edge); border-radius: var(--radius); background: radial-gradient(ellipse at 10% 10%, #343844, #191b23 45%, #111216 82%); transition: border-color .2s; }
.guide:nth-child(2) .guide-cover { background: radial-gradient(ellipse at 90% 85%, #35333c, #18191e 65%); }
.guide:nth-child(3) .guide-cover { background: radial-gradient(ellipse at 28% 88%, #303945, #15171c 66%); }
.guide a:hover .guide-cover, .guide a:focus-visible .guide-cover { border-color: var(--accent); }
.guide h3 { font-size: clamp(21px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.guide p { color: var(--muted); margin: 17px 0 12px; }
.guide-link { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.faq { background: radial-gradient(ellipse at 15% 20%, #20222b, #0e0f12 62%); border-top: 1px solid #282b34; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(25px, 6vw, 90px); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(150deg, #21232b, #14151b 80%); overflow: hidden; }
.faq-list details[open], .faq-list details:hover { border-color: #747b8c; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px clamp(17px, 2.4vw, 30px); min-height: 66px; font-weight: 680; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; line-height: 1; border: 1px solid #4d515b; border-radius: 50%; font-size: 19px; font-weight: 400; }
.faq-list summary span::before { content: "+"; }
.faq-list details[open] summary span::before { content: "−"; }
.faq-list summary:focus-visible { outline-offset: -4px; }
.faq-list p { padding: 0 clamp(17px, 2.4vw, 30px) 22px; color: var(--muted); }
.article-page { max-width: 890px; padding-block: clamp(48px, 9vw, 118px); }
.article-page h1 { margin-top: 35px; }
.article-lead { margin-top: 19px; color: var(--accent); font-size: clamp(18px, 2vw, 23px); }
.article-content { margin-top: 33px; padding-top: 27px; border-top: 1px solid var(--edge); font-size: 17px; color: var(--muted); }
.article-content h2 { margin: 2.2em 0 .65em; color: var(--ink); font-size: clamp(23px, 3vw, 32px); line-height: 1.15; }
.article-content h2:first-child { margin-top: 0; }
.article-content p + p { margin-top: 20px; }
.contact { --section-photo: url("contact-background.webp"); --section-photo-position: right center; padding-block: clamp(78px, 12vw, 170px); text-align: center; border-block: 1px solid #282b34; }
.home-page :is(.services, .ai-use, .team, .guides, .contact) {
  background-color: #111216;
  --section-shade: linear-gradient(180deg, #111216e0, #11121659 40%, #1112166b 67%, #111216e8);
  background-image: var(--section-shade), var(--section-photo);
  background-position: center, var(--section-photo-position);
  background-size: cover;
  background-repeat: no-repeat;
}
.home-page .contact {
  --section-shade: radial-gradient(ellipse at center, #0d0e12e6, #0d0e1260 68%), linear-gradient(180deg, #0e0f12b8, transparent 55%, #0e0f12db);
}
.contact .section-title, .contact-links { justify-content: center; }
.contact-links { margin-top: 28px; }
.contact p { margin-top: 10px; color: var(--muted); }
.footer { background: radial-gradient(ellipse at top left, #202125 0, transparent 49%), #0b0b0d; border-top: 1px solid #303136; color: #bebfc6; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(0, 1fr)) minmax(170px, 1.15fr); gap: clamp(18px, 2.8vw, 48px); align-items: start; padding-block: clamp(48px, 6vw, 88px); }
.footer .brand { display: inline-grid; gap: 8px; font-size: 23px; color: var(--ink); line-height: 1; }
.footer .brand-mark { width: 64px; height: 55px; background-position: left center; }
.footer-brand > p { max-width: 21ch; margin: 15px 0 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #4b4d54; border-radius: 50%; background: linear-gradient(145deg,#292a2d,#141416); color: #eeeff4; }
.footer-social a:hover { background: #32343b; }
.footer-social svg { width: 18px; height: 18px; }
.footer-column h2 { font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .085em; text-transform: uppercase; color: #9699a3; margin: 3px 0 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-column li + li { margin-top: 6px; }
.footer-column a { display: inline-block; padding-block: 2px; }
.footer-directory { border: 1px solid #404147; border-radius: 19px; background: linear-gradient(117deg,#212124,#111113 73%); }
.footer-directory summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 650; color: var(--ink); }
.footer-directory summary::-webkit-details-marker { display: none; }
.footer-directory summary::after { content: '+'; display: grid; flex: none; place-items: center; width: 28px; height: 28px; border: 1px solid #53545a; border-radius: 50%; font-size: 18px; font-weight: 400; line-height: 1; }
.footer-directory[open] summary::after { transform: rotate(45deg); }
.footer-directory ul { display: flex; flex-wrap: wrap; gap: 9px 26px; padding: 0 22px 23px; max-width: 1150px; }
.footer-directory a { display: inline-block; padding-block: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 23px; font-size: 12px; color: #a9abb3; }
.toplink { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; }
@media (max-width: 1000px) {
  .footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-column a { overflow-wrap: anywhere; padding-block: 5px; }
  .footer-directory ul { display: grid; gap: 8px; }
}
.case-page { padding-top: clamp(34px, 7vw, 95px); padding-bottom: 50px; }
.case-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--accent); }
.case-layout { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(20px, 4vw, 55px); align-items: start; }
.case-copy h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.03; letter-spacing: -.065em; margin-top: 8px; }
.case-description { color: var(--muted); margin: 14px 0 20px; }
.case-domain { font-size: 13px; color: var(--muted); margin-top: 8px; }
.case-figure { overflow: hidden; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel); }
.case-figure img { width: 100%; height: auto; }
.case-figure figcaption { text-align: right; padding: 8px 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-list ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --radius: 16px; }
  .header-row { padding-left: 14px; gap: 8px; }
  .site-nav { display: none; }
  .hero { min-height: max(580px, 86svh); padding-block: 120px 90px; }
  .hero h1 { font-size: clamp(36px, 8.2vw, 57px); text-wrap: balance; }
  .hero { --hero-position: 19%; }
  .hero-intro { margin-top: 17px; }
  .case-layout, .process-stage, .faq-layout, .guide-grid, .integration-grid, .ai-layout, .project-stack .project-copy { grid-template-columns: 1fr; }
  .process-heading { position: static; }
  .process-counter { display: none; }
  .steps li { min-height: auto; }
  .project-stack .project-desc { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .team-grid, .portfolio-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "first" "second" "wide" "feature"; }
  .approach-grid .approach-feature { min-height: 285px; }
}
@media (max-width: 450px) {
  .team-grid { gap: 9px; }
  .service-grid { grid-template-columns: 1fr; }
  .team-caption { padding: 11px 10px; }
  .team-caption h3 { font-size: 17px; }
  .team-caption p { font-size: 12px; }
  .section-title { font-size: clamp(30px, 9vw, 45px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 451px) {
    .service { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-items: start; }
    .service .service-price { margin-top: 0; }
  }
}

.service-scope { list-style: none; margin: 13px 0 0; padding: 11px 0 0; width: 100%; border-top: 1px solid var(--edge); color: var(--muted); font-size: 13px; }
.service-scope li { display: grid; grid-template-columns: 7px 1fr; gap: 7px; align-items: baseline; margin-top: 4px; }
.service-scope li::before { content: ""; width: 4px; height: 4px; align-self: start; margin-top: .56em; border-radius: 50%; background: var(--accent); }
.team-caption .team-description { margin-top: 10px; color: var(--ink); }
.case-media { min-width: 0; display: grid; gap: 16px; }
.case-figure .case-catalog-link { display: block; }
.case-catalog-link:focus-visible { outline-offset: -4px; }
.portfolio-dialog { width: min(1020px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #484d5a; border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: 0 30px 120px #000b; }
.portfolio-dialog::backdrop { background: #08090de0; backdrop-filter: blur(8px); }
html:has(.portfolio-dialog[open]) { overflow: hidden; }
.portfolio-dialog-inner { display: grid; gap: 12px; padding: clamp(12px, 2vw, 22px); }
.portfolio-dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.portfolio-dialog-top h2 { font-size: clamp(22px, 3vw, 34px); line-height: 1.1; letter-spacing: -.05em; }
.portfolio-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 50%; background: var(--paper); color: var(--ink); font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.portfolio-close:is(:hover, :focus-visible) { border-color: var(--accent); outline-color: var(--accent); }
.portfolio-dialog-image { min-width: 0; background: var(--paper); border-radius: calc(var(--radius) / 2); overflow: hidden; }
.portfolio-dialog-image img { width: 100%; max-height: min(68dvh, calc(100dvh - 172px)); min-height: 80px; object-fit: contain; }
.portfolio-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 450px) {
  .portfolio-dialog-actions { justify-content: stretch; }
  .portfolio-dialog-actions .button { flex: 1 1 auto; padding-inline: 13px; gap: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-dialog[open] { animation: preview-in .3s cubic-bezier(.2,.75,.28,1) both; }
  @keyframes preview-in {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}


@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
    .home-page main section:not(.hero) {
      --block-travel: 32px;
    }

    .home-page main section:not(.hero) :is(
      .section-head, .section-title, .portfolio-list, .service,
      .integration-grid article, .integration-case, .ai-layout p,
      .team-member, .approach-grid article, .guide, .faq-list details,
      .contact-inner p, .contact-links
    ),
    .home-page .footer-main {
      animation: block-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .home-page main section:not(.hero) .section-head .section-title {
      animation: none;
    }

    .home-page main section:not(.hero) :is(.section-title, .section-head) {
      --block-travel: 20px;
    }

    .home-page main section:not(.hero) :is(.project, .portfolio-list, .service, .guide, details, .contact-links):focus-within,
    .home-page .footer-main:focus-within {
      animation: none;
    }

    .home-page :is(.services, .ai-use, .team, .guides, .contact) {
      position: relative;
      isolation: isolate;
      overflow: clip;
      background-image: none;
      view-timeline-name: --section-scroll;
    }

    .home-page :is(.services, .ai-use, .team, .guides, .contact)::before {
      content: "";
      position: absolute;
      inset: -42px 0;
      z-index: -1;
      pointer-events: none;
      background-image: var(--section-shade), var(--section-photo);
      background-position: center, var(--section-photo-position);
      background-size: cover;
      background-repeat: no-repeat;
      animation: section-photo-drift linear both;
      animation-timeline: --section-scroll;
      animation-range: cover 0% cover 100%;
    }

    @keyframes block-rise {
      from { transform: translateY(var(--block-travel, 20px)); }
      to { transform: translateY(0); }
    }

    @keyframes section-photo-drift {
      from { transform: translateY(-39px); }
      to { transform: translateY(39px); }
    }

    @media (max-width: 720px) {
      .home-page main section:not(.hero),
      .home-page main section:not(.hero) :is(.section-title, .section-head) {
        --block-travel: 14px;
      }
    }
  }
}

/* A single sticky stage sits over a normal scrolling track. Short viewports,
   reduced motion and pages without JS use the full, readable ordered list. */
.process { --pin-top: clamp(18px, 13vh, 124px); }
.process-heading { position: static; }
.process-kicker { display: flex; align-items: center; gap: 9px; }
.process-kicker .icon { width: 21px; height: 21px; }
.process-counter, .process-notes, .step-controls { display: none; }
.steps .icon { width: 34px; height: 34px; margin-bottom: 16px; }
.steps li::before { float: right; border: 1px solid var(--edge); padding: 5px 10px; border-radius: 99px; }
.steps .step-result { border-top: 1px solid var(--edge); padding-top: .7em; color: var(--ink); }
.process.is-sequenced::after { content: ""; display: block; height: 120svh; }
.process.is-sequenced .process-stage { position: sticky; top: var(--pin-top); align-items: center; }
.is-sequenced .process-counter { display: block; margin-top: .2em; }
.is-sequenced .steps, .is-sequenced .process-notes { display: grid; }
.is-sequenced .steps li, .process-notes span { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.is-sequenced .steps li { display: grid; align-content: center; min-height: clamp(230px, 24vw, 348px); position: relative; transform: translateY(24px); }
.is-sequenced .steps li::before { position: absolute; top: 18px; right: 20px; }
.is-sequenced .steps li.is-current, .process-notes span.is-current { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .34s cubic-bezier(.2,.7,.25,1); }
.is-sequenced .step-result { display: none; }
.is-sequenced .process-notes { max-width: 42ch; margin-top: .35em; color: var(--muted); }
.is-sequenced .step-controls { display: flex; gap: 6px; margin-top: 15px; }
.step-controls button { appearance: none; width: 43px; min-height: 40px; border: 1px solid #474c57; border-radius: 10px; cursor: pointer; color: var(--muted); background: transparent; font: 600 13px/1 Inter,sans-serif; }
.step-controls button[aria-current="step"] { background: #d5dfef; color: #171a20; border-color: #d5dfef; }
.step-controls button:focus-visible { outline: 2px solid #dae2f0; outline-offset: 3px; }

.section-title--icon > .icon { width: .64em; height: .64em; }
.approach-grid .approach-feature { background: #181b22; padding: 0; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; min-height: 0; }
.approach-feature img { flex: 1 1 0; min-height: 155px; width: 100%; object-fit: cover; }
.approach-feature > div { border: 0; border-radius: 0; background: transparent; padding: clamp(20px, 2.3vw, 33px); }
.feature-article { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #444a55; color: var(--accent); font-size: 14px; font-weight: 650; }
.feature-article:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide .guide-cover { display: block; padding: 0; min-height: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #191c24; }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide h3 { margin-top: 20px; }
.guide p { margin-top: 10px; }
.contact-inner { text-align: left; display: grid; grid-template-columns: 1.38fr 1fr; align-items: center; gap: clamp(24px, 7vw, 110px); max-width: 1210px; }
.contact .contact-copy > .kicker { color: var(--accent); margin: 0 0 17px; }
.contact-copy > p:last-child { margin-top: 18px; max-width: 49ch; color: #e1e1e6; }
.contact .contact-links { display: grid; margin: 0; gap: 10px; justify-content: stretch; }
.contact-channel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; min-width: 0; border: 1px solid #4b525e; padding: 18px 20px; border-radius: 16px; background: #181b22ed; }
.contact-channel:hover { background: #252b36; border-color: #aab6cb; }
.contact-channel > .icon { width: 30px; height: 30px; }
.contact-channel strong, .contact-channel small { display: block; }
.contact-channel small { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .contact-inner { grid-template-columns: 1fr; }
  .approach-feature img { flex: none; height: auto; max-height: 330px; }
  .process { --pin-top: 22px; }
  .is-sequenced .process-counter { font-size: 64px; margin: 3px 0; }
  .is-sequenced .steps li { min-height: 165px; }
  .is-sequenced .process-stage { gap: 14px; }
  .steps .icon { width: 25px; height: 25px; margin-bottom: 10px; }
}
.ai-layout { row-gap: clamp(24px, 4vw, 48px); }
.ai-table { grid-column: 1 / -1; border: 1px solid #454a55; border-radius: var(--radius); overflow: hidden; background: #16181eef; }
.ai-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: clamp(14px, 1.25vw, 17px); }
.ai-table :is(td,th) { text-align: left; padding: clamp(14px, 2.2vw, 30px); vertical-align: top; }
.ai-table th { color: var(--ink); }
.ai-table thead { background: linear-gradient(120deg,#2a2d38,#202129); }
.ai-table thead th { font-size: clamp(17px, 2vw, 26px); line-height: 1.14; letter-spacing: -.025em; }
.ai-table th:first-child { width: 23%; }
.ai-table :is(th,td) + td, .ai-table thead th + th { border-left: 1px solid #353943; }
.ai-table tbody tr { border-top: 1px solid #353943; }
.ai-table td { color: #ccd0d8; }
.ai-mobile-label { display: none; }
@media (max-width: 640px) {
 .ai-table table, .ai-table tbody, .ai-table tr, .ai-table :is(th,td) { display: block; width: 100%; }
 .ai-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
 .ai-table tbody tr:first-child { border-top: 0; }
 .ai-table tbody th:first-child { width: 100%; padding: 14px 18px; background: #232731; }
 .ai-table tbody td { padding: 13px 18px; border: 0; }
 .ai-mobile-label { display: block; color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 3px; }
}

.park-story { max-width: 74ch; margin-block: clamp(32px, 6vw, 84px); }
