/* NewnFun Entertainment — modern studio design system */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --ink: #172238;
  --ink-strong: #0b1327;
  --muted: #667387;
  --line: #dfe5ee;
  --accent: #3155d9;
  --accent-hover: #2443bb;
  --navy: #0b1327;
  --mint: #6de5d5;
  --font-body: "DM Sans", "Noto Sans TC", "PingFang TC", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Noto Sans TC", "PingFang TC", system-ui, -apple-system, sans-serif;
  --shadow: 0 14px 45px -22px rgba(19, 31, 58, .2);
  --radius: 24px;
  --nav-height: 82px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101929;
    --surface: #19263a;
    --surface-soft: #1c2a40;
    --ink: #ecf1fb;
    --ink-strong: #fff;
    --muted: #b0bed2;
    --line: #304057;
    --accent: #a5b8ff;
    --accent-hover: #c0ccff;
    --shadow: 0 20px 60px -24px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101929;
  --surface: #19263a;
  --surface-soft: #1c2a40;
  --ink: #ecf1fb;
  --ink-strong: #fff;
  --muted: #b0bed2;
  --line: #304057;
  --accent: #a5b8ff;
  --accent-hover: #c0ccff;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; transition: background-color .25s ease, color .25s ease; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: #6de5d5; color: #0b1327; }
:focus-visible { outline: 3px solid #5cccbc; outline-offset: 4px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 500; padding: 10px 16px; transform: translateY(-170%); border-radius: 8px; background: var(--mint); color: #071428; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-header { z-index: 80; position: sticky; top: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.nav-shell { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; color: var(--ink-strong); }
.brand-icon { width: 43px; height: 43px; display: grid; place-items: center; background: #111f40; color: white; border-radius: 12px; box-shadow: 0 8px 18px rgba(20, 35, 72, .12); }
.brand-icon svg { width: 34px; height: 34px; }
.brand-type { display: flex; flex-direction: column; line-height: 1.1; }
.brand-type strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .07em; }
.brand-type small { font-size: 9px; font-weight: 800; letter-spacing: .29em; margin-top: 5px; }
.nav-panel { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; }
.nav-panel > a { color: var(--muted); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-panel > a:hover, .nav-panel > a:focus-visible { color: var(--accent); }
.nav-panel .mobile-contact { display: none; }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.theme-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s; }
.theme-toggle:hover { transform: rotate(12deg); background: var(--surface-soft); }
.theme-toggle svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
.nav-cta { font-size: 13.5px; font-weight: 800; text-decoration: none; border: 1px solid #0e2346; background: #102146; color: white; padding: 11px 20px; border-radius: 9px; white-space: nowrap; transition: background .2s, transform .2s; }
.nav-cta:hover { background: #2849a8; transform: translateY(-1px); }
.nav-cta span { margin-left: 9px; color: var(--mint); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #0b1327; color: white; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 75% 50%, rgba(58, 94, 182, .20), transparent 45%), radial-gradient(ellipse at 1% 70%, rgba(37, 86, 149, .16), transparent 42%); }
.hero-grid-lines { position: absolute; inset: 0; opacity: .21; pointer-events: none; background-image: linear-gradient(to right, rgba(116, 148, 185, .17) 1px, transparent 1px), linear-gradient(to bottom, rgba(116, 148, 185, .17) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(to right, transparent 3%, black 65%, transparent 99%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: 60px; min-height: 650px; padding-block: 92px 112px; position: relative; }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-eyebrow, .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .18em; line-height: 1.6; text-transform: uppercase; }
.hero-eyebrow { color: #a5c4da; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(109,229,213,.12); flex: 0 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: clamp(60px, 6.4vw, 94px); line-height: 1.055; font-weight: 700; letter-spacing: -.075em; max-width: 640px; }
.hero h1 span { background: linear-gradient(105deg, #7ce9e0 1%, #b1f4dc 40%, #b5caff 98%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-intro { color: #c1cde2; font-size: 18px; line-height: 1.82; max-width: 555px; margin-top: 27px; }
.hero-sub { color: #92a6c3; font-size: 14px; max-width: 535px; margin-top: 15px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; padding: 14px 22px; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 800; line-height: 1.35; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-accent { color: #061d30; background: var(--mint); box-shadow: 0 12px 35px -18px rgba(109,229,213,.65); }
.button-accent:hover { background: #a2f8e9; }
.button-outline { border: 1px solid rgba(204, 222, 247, .25); color: #f4f7ff; background: rgba(255, 255, 255, .045); }
.button-outline:hover { background: rgba(255,255,255,.1); }
.hero-note { display: flex; align-items: center; gap: 12px; color: #7990ae; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-top: 58px; }
.hero-note .line { width: 35px; height: 1px; background: #6de5d5; }
.note-separator { padding: 0 8px; color: #3e5677; }

/* Hero illustration: original CSS / inline SVG art, not borrowed imagery */
.hero-art { position: relative; height: 510px; min-width: 0; perspective: 1200px; }
.art-glow { position: absolute; inset: 50px; filter: blur(50px); background: radial-gradient(circle, rgba(86, 112, 239, .23), transparent 72%); }
.art-orbit { position: absolute; border: 1px solid rgba(123, 165, 215, .13); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art-orbit-outer { width: 110%; aspect-ratio: 1; }
.art-orbit-inner { width: 91%; aspect-ratio: 1; border-style: dashed; border-color: rgba(123, 165, 215, .18); }
.art-main { position: absolute; inset: 62px 42px 61px 32px; border: 1px solid rgba(185,217,255,.23); background: linear-gradient(150deg, rgba(40,64,113,.89), rgba(17,35,72,.96) 55%, rgba(15,42,76,.91)); border-radius: 23px; box-shadow: 0 48px 100px -45px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.1); display: flex; flex-direction: column; transform: rotate(-5deg); overflow: hidden; }
.art-main::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; left: 42%; top: 16%; background: radial-gradient(circle, rgba(63, 123, 216, .2), transparent 70%); pointer-events: none; }
.art-topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgba(203,225,255,.13); color: #b4c8e4; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.art-top-brand { display: inline-flex; align-items: center; gap: 8px; }
.art-small-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.art-plus { color: #6de5d5; font-size: 21px; font-weight: 400; line-height: 1; }
.art-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; z-index: 2; }
.art-symbol { color: #ecfcff; width: 185px; height: 185px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(180,224,245,.17); background: radial-gradient(circle, rgba(96, 173, 204, .19), rgba(26, 57, 103, .35) 63%, transparent 72%); box-shadow: 0 0 0 27px rgba(126, 184, 231, .035), 0 0 0 56px rgba(126, 184, 231, .027); }
.art-symbol svg { width: 140px; height: 140px; }
.art-label { font-family: var(--font-display); color: #d1e0f8; font-size: 12px; letter-spacing: .005em; margin-top: 26px; }
.art-bottom { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(203,225,255,.13); color: #8da7c6; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.art-progress { flex: 1; height: 1px; background: linear-gradient(to right, rgba(105, 229, 213, .7), rgba(105, 229, 213, .14)); }
.art-tag { position: absolute; z-index: 3; background: rgba(236, 247, 255, .96); color: #193251; font-size: 12px; font-weight: 800; border-radius: 12px; padding: 14px 18px; box-shadow: 0 22px 44px rgba(0,0,0,.25); display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.art-tag-a { top: 30px; right: -17px; transform: rotate(4deg); }
.art-tag-b { bottom: 37px; left: -25px; transform: rotate(-4deg); }
.tag-spark { color: #2c59cf; font-size: 20px; }
.tag-code { color: #1aa98c; font-family: monospace; font-size: 18px; }
.art-index { position: absolute; right: 14px; bottom: 0; color: #7c94b4; font-size: 10px; font-weight: 800; letter-spacing: .15em; }

/* Positioning strip */
.positioning { border-bottom: 1px solid var(--line); background: var(--surface); }
.positioning-inner { min-height: 101px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.positioning-lead { font-family: var(--font-display); color: var(--ink-strong); font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.positioning-items { display: flex; align-items: center; flex-wrap: wrap; gap: 35px; }
.positioning-items > span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .025em; }
.mini-star { color: var(--accent); font-size: 20px; line-height: 1; }

/* Sections */
.section { padding: 116px 0 125px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 49px; }
.eyebrow { margin-bottom: 18px; }
.eyebrow-blue { color: var(--accent); }
.eyebrow-mint { color: var(--mint); }
.section h2 { font-family: var(--font-display); font-size: clamp(35px, 4.4vw, 56px); line-height: 1.14; font-weight: 700; letter-spacing: -.055em; color: var(--ink-strong); }
.heading-muted { color: var(--muted); }
.section-intro { max-width: 320px; color: var(--muted); line-height: 1.83; font-size: 15px; }
.inline-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; text-underline-offset: 5px; }
.inline-link:hover { text-decoration: underline; }

/* Services */
.services-section { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.service-card { position: relative; min-height: 356px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; padding: 28px; box-shadow: 0 5px 15px -17px rgba(0,0,0,.3); transition: transform .25s, border-color .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--accent), transparent 67%); box-shadow: var(--shadow); }
.service-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 43px; }
.service-no { color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.service-icon svg { width: 29px; height: 29px; }
.service-card h3 { color: var(--ink-strong); font-family: var(--font-display); font-size: 24px; line-height: 1.23; letter-spacing: -.045em; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.78; }
.service-foot { display: block; margin-top: auto; padding-top: 28px; font-size: 11px; color: var(--muted); font-weight: 700; }
.service-foot span { padding: 0 4px; color: var(--accent); }

/* Real project showcase */
.work-section { background: #0d172c; color: white; overflow: hidden; }
.section-heading-light h2 { color: white; }
.section-heading-light .section-intro { color: #a5b5d0; }
.mint-word { color: var(--mint); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { background: #16233a; border: 1px solid rgba(166,195,231,.18); border-radius: 21px; overflow: hidden; box-shadow: 0 25px 64px -38px rgba(0,0,0,.56); transition: transform .25s, border-color .25s; }
.work-card:hover { transform: translateY(-5px); border-color: rgba(127, 236, 220, .45); }
.work-media { height: 363px; position: relative; overflow: hidden; }
.browser-preview { display: grid; place-items: center; background: radial-gradient(circle at 65% 42%, #4658a9, #222c5a 53%, #101b36 100%); }
.browser-preview::before, .code-preview::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 37px 37px; opacity: .48; }
.preview-window { position: relative; width: 75%; height: 245px; background: #0d1932; border-radius: 11px; border: 1px solid rgba(255,255,255,.32); box-shadow: 18px 30px 55px rgba(0,0,0,.42); transform: rotate(-5deg) translate(14px, -3px); overflow: hidden; }
.preview-toolbar { height: 31px; background: #eaf0fa; display: flex; justify-content: space-between; align-items: center; padding: 0 13px; color: #738098; font-size: 9px; font-weight: 700; }
.traffic { display: flex; gap: 4px; }
.traffic i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #b6c3d9; }
.traffic i:first-child { background: #ff7d83; }
.traffic i:nth-child(2) { background: #f5c96a; }
.traffic i:nth-child(3) { background: #79d4b6; }
.preview-content { height: calc(100% - 31px); background: radial-gradient(circle at 100% 50%, rgba(83,157,209,.25), transparent 50%), #0e1b35; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 21px 31px; }
.preview-symbol { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 13px; }
.preview-symbol span { color: var(--mint); }
.preview-content small { color: #aabbd7; font-size: 7px; font-weight: 800; letter-spacing: .2em; margin-bottom: 8px; }
.preview-content strong { font-family: var(--font-display); color: white; line-height: 1.12; font-size: 28px; font-weight: 700; letter-spacing: -.06em; }
.preview-content strong span { color: var(--mint); }
.preview-button { display: inline-block; border-radius: 3px; background: var(--mint); color: #0a2236; padding: 5px 10px; margin-top: 13px; font-size: 8px; font-weight: 800; }
.media-label { position: absolute; bottom: 18px; left: 23px; z-index: 2; font-size: 9px; font-weight: 800; letter-spacing: .13em; color: rgba(237,246,255,.8); }
.code-preview { background: radial-gradient(circle at 53% 43%, #2e4263, #15243b 65%, #111c32); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.demo-label { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: #cbd7e8; margin: 7px 0 15px 16%; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.demo-label .signal-dot { width: 6px; height: 6px; }
.ascii-screen { z-index: 1; position: relative; width: 68%; height: 236px; border: 1px solid rgba(202,224,244,.26); border-radius: 9px; overflow: hidden; background: #090d11; color: #e9f7f6; cursor: pointer; box-shadow: 0 22px 55px rgba(0,0,0,.43); }
.frame { position: absolute; left: 50%; top: 50%; margin: 0; font-family: ui-monospace,"SF Mono",Consolas,monospace; font-size: 16px; font-variant-ligatures: none; white-space: pre; letter-spacing: 0; transform-origin: center; user-select: none; pointer-events: none; }
.screen-msg { position: absolute; inset: auto 5px 9px; text-align: center; font-size: 11px; line-height: 1.4; color: #d1e2e3; text-shadow: 0 0 5px #090d11; pointer-events: none; }
.demo-foot { width: 68%; margin-top: 9px; position: relative; display: flex; justify-content: space-between; gap: 12px; color: #94abc7; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.demo-foot span:last-child { color: var(--mint); }
.work-description { min-height: 191px; padding: 27px 30px 31px; display: flex; justify-content: space-between; gap: 23px; background: #16233a; }
.work-description > div { min-width: 0; }
.work-type { font-size: 11px; color: #84d9d1; font-weight: 800; }
.work-description h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.25; letter-spacing: -.045em; margin-top: 9px; }
.work-description p { color: #a9bdd6; font-size: 13px; line-height: 1.7; margin-top: 10px; max-width: 370px; }
.project-arrow { flex: 0 0 auto; width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid rgba(199,220,240,.31); border-radius: 50%; color: var(--mint); font-size: 20px; text-decoration: none; transition: background .2s, transform .2s; }
.project-arrow:hover { background: rgba(109,229,213,.12); transform: translate(2px, -2px); }
.work-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(180,203,232,.16); padding-top: 24px; margin-top: 35px; font-size: 13px; color: #a5b5d0; }
.work-bottom .inline-link { color: var(--mint); white-space: nowrap; }

/* Approach */
.approach-section { background: var(--bg); }
.approach-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; }
.approach-item { padding: 6px 0 0; }
.approach-number { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--accent); }
.approach-rule { margin: 21px 0 29px; height: 1px; background: var(--line); position: relative; }
.approach-rule::before { content: ""; width: 8px; height: 8px; position: absolute; top: -3.5px; left: 0; border-radius: 50%; background: var(--accent); }
.approach-item h3 { font-family: var(--font-display); font-size: 23px; letter-spacing: -.035em; color: var(--ink-strong); }
.approach-item p { color: var(--muted); font-size: 14px; line-height: 1.78; margin-top: 11px; max-width: 245px; }

/* Studio */
.studio-section { background: var(--surface); border-top: 1px solid var(--line); }
.studio-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: clamp(50px,7vw,110px); }
.studio-copy > p:not(.eyebrow) { max-width: 545px; color: var(--muted); font-size: 15px; line-height: 1.9; margin-top: 24px; }
.studio-copy .inline-link { margin-top: 29px; }
.studio-card { position: relative; overflow: hidden; padding: 35px 39px 40px; border-radius: 20px; color: white; background: linear-gradient(145deg, #1d3153, #0d1930 72%); box-shadow: 0 32px 65px -33px rgba(19,42,86,.5); }
.studio-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -100px; border: 1px solid rgba(111,209,213,.17); border-radius: 50%; box-shadow: 0 0 0 38px rgba(111,209,213,.025), 0 0 0 78px rgba(111,209,213,.02); }
.studio-card-top { display: flex; justify-content: space-between; align-items: start; color: #aabbd3; font-size: 10px; font-weight: 800; letter-spacing: .13em; position: relative; }
.studio-mono { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #0d1930; background: var(--mint); font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.05em; }
.circle-accent { color: var(--mint); margin-left: 6px; font-size: 9px; }
.studio-card h3 { font-family: var(--font-display); color: white; font-size: clamp(30px,3.5vw,47px); line-height: 1.08; letter-spacing: -.07em; margin: 35px 0 31px; position: relative; }
.company-details { border-top: 1px solid rgba(218,235,255,.2); }
.company-details > div { display: grid; grid-template-columns: 95px minmax(0,1fr); align-items: start; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(218,235,255,.12); }
.company-details dt { color: #95aecb; font-size: 11px; font-weight: 800; }
.company-details dd { color: #f3f6fc; font-size: 12px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.company-details dd a { text-decoration: none; border-bottom: 1px solid rgba(244,255,255,.25); }
.company-details dd a:hover { color: var(--mint); }

/* Contact */
.contact-section { position: relative; background: #1e4d67; color: white; overflow: hidden; isolation: isolate; }
.contact-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, #12364d, #1a526a 61%, #0a3249); }
.contact-layout { position: relative; min-height: 396px; padding-block: 82px 89px; display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.contact-glow { position: absolute; right: -200px; top: -240px; width: 620px; height: 620px; border: 1px solid rgba(157,242,225,.17); border-radius: 50%; box-shadow: 0 0 0 80px rgba(162,244,234,.025),0 0 0 160px rgba(162,244,234,.018); pointer-events: none; }
.contact-copy { position: relative; }
.contact-copy h2 { font-family: var(--font-display); font-size: clamp(46px,5vw,70px); letter-spacing: -.07em; line-height: 1.08; color: white; }
.contact-copy h2 span { color: #9ff2e7; }
.contact-copy p:not(.eyebrow) { color: #c3deed; font-size: 14px; max-width: 510px; margin-top: 22px; line-height: 1.8; }
.contact-button { margin-top: 32px; }
.contact-aside { position: relative; display: flex; flex-direction: column; min-width: 260px; padding-left: 27px; padding-bottom: 4px; border-left: 1px solid rgba(210,255,250,.3); }
.contact-detail-label { color: #a4e8db; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.contact-aside a { color: white; font-size: 15px; font-weight: 800; text-decoration: none; margin: 9px 0 25px; overflow-wrap: anywhere; }
.contact-aside a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-aside p { color: white; margin-top: 9px; font-size: 15px; font-weight: 700; }

/* Footer */
.site-footer { background: #0b1426; color: #96a9c6; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 65px; padding-block: 63px 58px; }
.footer-brand { color: white; }
.footer-brand .brand-icon { background: #233a61; }
.footer-top > p { color: #9cacc4; font-size: 13px; line-height: 1.85; max-width: 310px; }
.footer-top nav { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 28px; }
.footer-top nav a { color: #c1cfe0; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-top nav a:hover, .footer-bottom a:hover { color: var(--mint); }
.footer-bottom { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #25344b; color: #859ab6; font-size: 11px; }
.footer-bottom a { text-decoration: none; }
.footer-separator { padding: 0 9px; }

/* Progressive reveal: keep content available when scripts are disabled */
.js .reveal { opacity: 0; transform: translateY(16px); transition: transform .65s ease, opacity .65s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.services-grid .reveal:nth-child(2), .work-grid .reveal:nth-child(2) { transition-delay: .07s; }
.services-grid .reveal:nth-child(3) { transition-delay: .14s; }

@media (max-width: 1100px) {
  .container { width: min(1200px, calc(100% - 56px)); }
  .nav-shell { gap: 14px; }
  .nav-panel { gap: 16px; }
  .hero-layout { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 26px; }
  .hero h1 { font-size: clamp(58px, 6vw, 76px); }
  .art-tag-a { right: -3px; }
  .art-tag-b { left: -3px; }
  .positioning-items { gap: 19px; }
  .service-card { padding: 24px; }
  .work-media { height: 330px; }
  .preview-window { width: 81%; }
}

@media (max-width: 900px) {
  :root { --nav-height: 72px; }
  .container { width: min(1200px, calc(100% - 44px)); }
  .nav-shell { position: relative; }
  .nav-panel { display: none; position: absolute; top: calc(100% - 1px); left: -22px; right: -22px; padding: 19px 22px 23px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; z-index: 100; }
  .site-header.menu-open .nav-panel { display: flex; }
  .nav-panel a { width: 100%; padding: 12px 4px; color: var(--ink); font-size: 15px; }
  .nav-panel .mobile-contact { display: inline-block; color: var(--accent); }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .hero-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 81px; padding-bottom: 95px; }
  .hero-content { max-width: 720px; }
  .hero h1 { max-width: 760px; font-size: clamp(62px, 8.8vw, 85px); }
  .hero-art { width: min(100%, 590px); margin-inline: auto; height: 430px; }
  .art-main { inset: 30px 55px 40px 55px; }
  .art-symbol { width: 165px; height: 165px; }
  .art-symbol svg { width: 130px; }
  .art-tag-a { right: 20px; top: 0; }
  .art-tag-b { left: 20px; bottom: 8px; }
  .hero-note { margin-top: 32px; }
  .positioning-inner { flex-direction: column; align-items: start; gap: 14px; padding-block: 27px; }
  .section { padding-block: 85px 95px; }
  .section-heading { align-items: start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; min-height: 275px; }
  .service-top { margin-bottom: 30px; }
  .work-media { height: 310px; }
  .preview-window { width: 82%; height: 223px; }
  .preview-content { padding: 18px 20px; }
  .preview-content strong { font-size: 24px; }
  .ascii-screen, .demo-foot { width: 78%; }
  .demo-label { margin-left: 11%; }
  .approach-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 33px 38px; }
  .studio-layout { gap: 30px; grid-template-columns: 1fr 1fr; }
  .studio-card { padding: 30px 27px 32px; }
  .studio-card h3 { font-size: 32px; }
  .company-details > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .contact-layout { gap: 30px; }
  .footer-top { gap: 30px; }
}

@media (max-width: 660px) {
  .container { width: calc(100% - 36px); }
  .brand-icon { width: 39px; height: 39px; border-radius: 11px; }
  .brand-type strong { font-size: 16px; }
  .brand-type small { font-size: 8px; }
  .nav-actions { gap: 8px; }
  .theme-toggle, .menu-toggle { width: 37px; height: 37px; }
  .nav-panel { left: -18px; right: -18px; }
  .hero-layout { padding-top: 76px; padding-bottom: 72px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(52px, 11.2vw, 71px); line-height: 1.05; letter-spacing: -.075em; }
  .hero-intro { font-size: 16px; margin-top: 23px; line-height: 1.75; }
  .hero-sub { font-size: 13px; }
  .hero-actions { margin-top: 27px; }
  .hero-art { height: 320px; }
  .art-main { inset: 23px 29px 29px 25px; border-radius: 16px; }
  .art-topbar { padding: 13px 14px; font-size: 7px; }
  .art-center .art-symbol { width: 120px; height: 120px; box-shadow: 0 0 0 18px rgba(126,184,231,.035), 0 0 0 34px rgba(126,184,231,.024); }
  .art-center .art-symbol svg { width: 100px; height: 100px; }
  .art-label { font-size: 9px; margin-top: 15px; }
  .art-bottom { padding: 12px 14px; font-size: 7px; }
  .art-tag { font-size: 9px; padding: 9px 11px; }
  .art-tag-a { right: 0; }
  .art-tag-b { left: 0; }
  .art-index { display: none; }
  .positioning-lead { font-size: 18px; }
  .positioning-items { gap: 10px 20px; }
  .positioning-items > span { font-size: 11px; }
  .section { padding-block: 75px 83px; }
  .section-heading { flex-direction: column; align-items: start; gap: 21px; margin-bottom: 34px; }
  .section h2 { font-size: clamp(34px, 8.3vw, 44px); }
  .section-intro { max-width: 580px; font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card, .service-card:last-child { grid-column: auto; min-height: 285px; padding: 25px; }
  .service-top { margin-bottom: 21px; }
  .service-card h3 { font-size: 24px; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .work-media { height: 355px; }
  .preview-window { height: 242px; width: 75%; }
  .preview-content strong { font-size: 27px; }
  .ascii-screen { height: 240px; }
  .work-description { padding: 23px; min-height: 155px; }
  .work-bottom { flex-direction: column; align-items: start; gap: 12px; }
  .approach-grid { gap: 34px 20px; }
  .approach-item h3 { font-size: 21px; }
  .approach-item p { font-size: 13px; }
  .studio-layout { grid-template-columns: 1fr; gap: 34px; }
  .studio-card { padding: 31px; }
  .studio-card h3 { font-size: 40px; }
  .company-details > div { grid-template-columns: 95px 1fr; padding: 13px 0; }
  .contact-layout { min-height: auto; padding-block: 72px 76px; flex-direction: column; align-items: start; gap: 43px; }
  .contact-copy h2 { font-size: clamp(45px,10vw,66px); }
  .contact-aside { padding-left: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding-block: 44px 38px; gap: 25px; }
  .footer-top > p { grid-column: 1 / -1; grid-row: 2; }
  .footer-top nav { grid-column: 2; grid-row: 1; gap: 13px; }
  .footer-bottom { align-items: start; flex-direction: column; justify-content: center; padding-block: 20px; gap: 6px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: clamp(47px,11.5vw,54px); }
  .hero-art { height: 292px; }
  .art-main { inset: 18px 20px 25px 18px; }
  .art-tag-a { top: 3px; right: -6px; }
  .art-tag-b { bottom: 7px; left: -6px; }
  .button { width: 100%; justify-content: space-between; }
  .hero-actions { gap: 10px; }
  .positioning-items { display: grid; grid-template-columns: 1fr 1fr; }
  .work-media { height: 304px; }
  .preview-window { width: 83%; height: 224px; }
  .preview-content strong { font-size: 24px; }
  .ascii-screen { height: 210px; width: 79%; }
  .demo-foot { width: 79%; font-size: 8px; }
  .demo-label { font-size: 8px; }
  .approach-grid { grid-template-columns: 1fr; gap: 19px; }
  .approach-rule { margin: 13px 0 16px; }
  .approach-item p { max-width: 320px; }
  .company-details > div { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top nav { grid-column: 1; grid-row: 2; grid-template-columns: repeat(4,1fr); gap: 12px; }
  .footer-top > p { grid-column: 1; grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
