:root {
  --ink: #172d3d;
  --ink-soft: #51616b;
  --muted: #70808a;
  --lime: #d5f56c;
  --lime-deep: #b6d64a;
  --paper: #f5f7f8;
  --white: #ffffff;
  --line: #e2e8e9;
  --soft: #edf2f2;
  --dark: #172d3d;
  --dark-2: #213e50;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(22, 43, 57, .10);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
body.menu-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #86a93d; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding: 112px 0; }
.section-muted { background: var(--soft); }
.section-soft { background: #eaf0ee; }
.section-dark { background: var(--dark); color: var(--white); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 12px 16px; transform: translateY(-150%); border-radius: 10px; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(23, 45, 61, .07); background: rgba(245, 247, 248, .91); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(23, 45, 61, .12); border-radius: 13px; background: var(--dark); color: var(--lime); font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -2px; }
.brand-mark span { transform: translateY(-1px); }
.brand-name { display: flex; flex-direction: column; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.8px; line-height: 1.05; }
.brand-name > span { display: inline; }
.brand-name > span { color: #6e9c26; }
.brand-name small { margin-top: 4px; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 27px; }
.nav-link { position: relative; padding: 10px 0; color: #55646d; font-size: 13px; font-weight: 600; transition: color .2s; }
.nav-link::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--lime-deep); content: ''; transition: transform .2s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.language-switch { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.language-button { padding: 5px 7px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 800; transition: .2s; }
.language-button.active { background: var(--dark); color: var(--lime); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 53px; padding: 0 23px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 16px; transition: transform .2s; }
.button:hover span { transform: translate(2px, -2px); }
.button-lime { background: var(--lime); color: var(--ink); box-shadow: 0 8px 18px rgba(191, 224, 94, .18); }
.button-lime:hover { background: #e1ff83; box-shadow: 0 12px 24px rgba(191, 224, 94, .28); }
.button-dark { background: var(--dark); color: var(--white); }
.button-dark:hover { background: var(--dark-2); }
.button-outline { border-color: rgba(23,45,61,.18); background: rgba(255,255,255,.35); color: var(--ink); }
.button-outline:hover { background: var(--white); }
.button-small { min-height: 43px; padding: 0 16px; font-size: 12px; }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding-top: 82px; padding-bottom: 30px; background: var(--paper); }
.hero::before, .hero::after { position: absolute; z-index: 0; inset: -5%; pointer-events: none; content: ''; transition: opacity .8s ease; }
.hero::before { background: radial-gradient(ellipse at 81% 35%, rgba(213,245,108,.24), transparent 28%); opacity: 1; }
.hero::after { background: radial-gradient(ellipse at 81% 35%, rgba(177,109,76,.24), transparent 31%); opacity: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 45px; min-height: 440px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #66777f; font-size: 10px; font-weight: 800; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #9dbb4a; box-shadow: 0 0 0 4px rgba(213,245,108,.4); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', 'Segoe UI', sans-serif; }
.hero h1 { max-width: 620px; margin: 22px 0 20px; font-size: clamp(44px, 5.4vw, 69px); font-weight: 700; letter-spacing: -.065em; line-height: 1.035; }
.hero-intro { max-width: 500px; margin-bottom: 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: var(--muted); font-size: 11px; font-weight: 600; }
.note-line { width: 30px; height: 1px; background: #9dbb4a; }
.hero-art { position: relative; display: grid; min-height: 420px; place-items: center; }
.art-orbit { position: absolute; border: 1px solid rgba(23, 45, 61, .08); border-radius: 50%; }
.orbit-one { width: 400px; height: 400px; }
.orbit-two { width: 330px; height: 330px; border-color: rgba(23,45,61,.06); }
.art-glow { position: absolute; z-index: 0; width: 250px; height: 250px; border-radius: 50%; background: rgba(213,245,108,.35); filter: blur(50px); }
.browser-card { position: relative; z-index: 1; width: min(425px, 88%); overflow: hidden; transform: rotate(-3deg); border: 1px solid rgba(23,45,61,.1); border-radius: 15px; background: #fff; box-shadow: 0 35px 85px rgba(23,45,61,.18); }
.browser-top { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 14px; border-bottom: 1px solid #edf0ef; color: #99a3a7; font-size: 9px; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i, .browser-dots i:nth-child(2), .browser-dots i:nth-child(3) { display: block; width: 6px; height: 6px; border-radius: 50%; background: #e4a99c; }
.browser-dots i:nth-child(2) { background: #e8ca78; }
.browser-dots i:nth-child(3) { background: #b4ce72; }
.browser-menu { color: #84939a; letter-spacing: 2px; }
.browser-body { position: relative; min-height: 285px; padding: 35px 30px; overflow: hidden; }
.browser-kicker { width: 55px; height: 5px; margin-bottom: 17px; border-radius: 5px; background: var(--lime-deep); }
.browser-heading { width: 75%; height: 17px; margin-bottom: 8px; border-radius: 4px; background: var(--ink); }
.browser-heading.narrow { width: 54%; }
.browser-text { width: 48%; height: 5px; margin-top: 15px; border-radius: 5px; background: #d8e0df; }
.browser-text.short { width: 35%; margin-top: 7px; }
.browser-action { width: 80px; height: 24px; margin-top: 22px; border-radius: 5px; background: var(--lime); }
.browser-sample { position: absolute; right: 18px; bottom: 18px; width: 146px; height: 118px; border-radius: 12px; background: #e8eeee; }
.sample-window { position: absolute; z-index: 1; top: 24px; left: 13px; display: flex; flex-direction: column; gap: 6px; width: 66px; height: 72px; padding: 10px; transform: rotate(-6deg); border: 1px solid #dde5e3; border-radius: 6px; background: white; box-shadow: 0 8px 18px rgba(23,45,61,.1); }
.sample-window span { width: 20px; height: 3px; background: var(--lime-deep); }
.sample-window b { width: 40px; height: 10px; border-radius: 2px; background: var(--ink); }
.sample-window i { width: 38px; height: 3px; background: #d5dddc; }
.sample-ring { position: absolute; top: 15px; right: 15px; width: 61px; height: 61px; border: 9px solid var(--lime); border-radius: 50%; }
.sample-cube { position: absolute; right: 28px; bottom: 15px; width: 39px; height: 27px; transform: rotate(12deg); border-radius: 5px; background: #4e7281; }
.float-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(23,45,61,.07); border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 13px 36px rgba(23,45,61,.12); color: var(--ink); font-size: 10px; font-weight: 700; }
.tag-top { top: 55px; right: 9px; animation: drift 5s ease-in-out infinite; }
.tag-bottom { bottom: 42px; left: 1px; animation: drift 6s ease-in-out infinite reverse; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8eb945; box-shadow: 0 0 0 4px rgba(142,185,69,.15); }
.check-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--lime); font-size: 11px; }
.hero-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(23,45,61,.09); color: #718087; font-size: 10px; font-weight: 700; letter-spacing: .035em; }
.hero-bottom i { width: 3px; height: 3px; border-radius: 50%; background: #a3b2b0; }

.section-heading { max-width: 580px; margin-bottom: 42px; }
.section-heading h2, .detail-grid h2, .boundary-card h2, .brief-aside h2 { margin: 14px 0 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.12; }
.section-heading > p { margin: 15px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.split-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 45px; max-width: none; }
.split-heading > p { max-width: 430px; margin: 0 0 4px; }
.trust-section { padding-top: 92px; padding-bottom: 92px; }
.trust-section .section-heading { max-width: 670px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-card { min-height: 192px; padding: 25px; border: 1px solid rgba(23,45,61,.08); border-radius: 14px; background: rgba(255,255,255,.62); transition: transform .25s, box-shadow .25s, background .25s; }
.trust-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.trust-number { color: #8aa64b; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; }
.trust-card h3 { margin: 23px 0 9px; font-size: 18px; letter-spacing: -.04em; }
.trust-card p { max-width: 280px; margin-bottom: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 23px; overflow: hidden; border: 1px solid rgba(23,45,61,.08); border-radius: 14px; background: rgba(255,255,255,.7); transition: transform .25s, box-shadow .25s, background .25s; }
.service-card::after { position: absolute; right: -29px; bottom: -48px; width: 116px; height: 116px; border: 1px solid rgba(169,202,76,.22); border-radius: 50%; content: ''; transition: transform .35s; }
.service-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow); }
.service-card:hover::after { transform: scale(1.35); }
.card-topline { display: flex; justify-content: space-between; color: #77858b; font-size: 10px; font-weight: 700; }
.card-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 14px; }
.service-card h3 { margin: 28px 0 9px; font-size: 23px; letter-spacing: -.05em; }
.service-card p { max-width: 310px; margin: 0 0 23px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.service-detail-card { min-height: 306px; }
.service-detail-card p { margin-bottom: 14px; }
.service-detail-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.service-detail-card li::before { margin-right: 8px; color: #789d33; content: '✓'; font-weight: 800; }
.card-meta { margin-top: auto; color: #637d34; font-size: 10px; font-weight: 800; }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.section-link { display: flex; justify-content: flex-end; margin-top: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 800; }
.text-link span { color: #789d33; transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.project-card { min-width: 0; }
.nocturne-cover-link { display: block; }
.project-visual { position: relative; display: flex; min-height: 270px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(23,45,61,.08); border-radius: 15px; background: #e3ece9; transition: transform .3s; }
.project-card:hover .project-visual { transform: translateY(-4px); }
.visual-2 { background: #e9e8df; }
.visual-3 { background: #e5e8ef; }
.browser-bar { position: absolute; top: 23px; right: 28px; left: 28px; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid rgba(23,45,61,.08); border-radius: 7px 7px 0 0; background: rgba(255,255,255,.6); }
.browser-bar i { width: 5px; height: 5px; border-radius: 50%; background: #c4cfca; }
.browser-bar span { margin-left: 7px; color: #84928d; font-size: 7px; }
.mock-layout { position: relative; width: min(70%, 360px); min-height: 174px; margin-top: 27px; padding: 23px; border: 1px solid rgba(23,45,61,.08); border-radius: 4px 4px 8px 8px; background: rgba(255,255,255,.83); box-shadow: 0 15px 35px rgba(23,45,61,.1); }
.mock-label { width: 40px; height: 4px; margin-bottom: 12px; border-radius: 3px; background: #a5bd68; }
.mock-title { width: 50%; height: 12px; margin-bottom: 5px; border-radius: 3px; background: #294251; }
.mock-line { width: 44%; height: 4px; margin-top: 8px; border-radius: 3px; background: #d5dedb; }
.mock-line.short { width: 29%; margin-top: 5px; }
.mock-button { width: 53px; height: 16px; margin-top: 14px; border-radius: 4px; background: var(--lime); }
.mock-art { position: absolute; top: 43px; right: 22px; width: 34%; height: 100px; overflow: hidden; border-radius: 8px; background: #dfe8e3; }
.mock-art b { position: absolute; top: 12px; right: 11px; width: 45px; height: 45px; border: 8px solid #bedc68; border-radius: 50%; }
.mock-art i { position: absolute; right: 23px; bottom: 8px; width: 37px; height: 26px; transform: rotate(-11deg); border-radius: 5px; background: #537284; }
.visual-2 .mock-art { background: #e7e1d3; }.visual-2 .mock-art b { border-color: #dba66e; }.visual-2 .mock-button { background: #e8c286; }
.visual-3 .mock-art { background: #dfe2ed; }.visual-3 .mock-art b { border-color: #a6b3dc; }.visual-3 .mock-button { background: #b8c1e0; }
.project-stamp { position: absolute; right: 22px; bottom: 18px; color: rgba(23,45,61,.2); font-family: 'Manrope',sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.08em; }
.project-caption { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 3px 0; }
.eyebrow.tiny { font-size: 8px; }
.project-caption h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.04em; }
.project-caption h3 a:hover { color: #66882c; }
.project-plus { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: #789d33; }
.nocturne-visual { min-height: 0; aspect-ratio: 16 / 9; background: #171414; border-color: #302723; }
.nocturne-preview-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #171414; }
.nocturne-cover { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 73% 48%, rgba(166,104,66,.35), transparent 25%), linear-gradient(135deg, #171414 4%, #241b19 55%, #36251f 100%); color: #eee2d3; }
.nocturne-cover::before { position: absolute; inset: 0; background: repeating-linear-gradient(112deg, transparent 0 33px, rgba(255,255,255,.018) 34px 35px, transparent 36px 68px); content: ''; }
.nocturne-brand { position: absolute; top: 10%; left: 9%; color: #e9d9c8; font-family: 'Manrope', Georgia, serif; font-size: 11px; font-weight: 500; letter-spacing: .25em; }
.nocturne-brand sup { margin-left: 3px; font-family: sans-serif; font-size: 6px; }
.nocturne-cover-copy { position: absolute; z-index: 2; top: 29%; left: 10%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nocturne-cover-copy > span { color: #c3a992; font-family: 'DM Sans', sans-serif; font-size: 7px; letter-spacing: .16em; }
.nocturne-cover-copy strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 5vw, 53px); font-weight: 400; letter-spacing: -.06em; line-height: .97; }
.nocturne-cover-copy em { color: #d8a77f; font-weight: 400; }
.nocturne-bottle { position: absolute; z-index: 1; top: 23%; right: 16%; width: 22%; height: 53%; transform: rotate(5deg); border: 1px solid rgba(244,218,187,.42); border-radius: 20px 20px 12px 12px; background: linear-gradient(115deg, rgba(236,203,165,.2), rgba(40,26,22,.82) 45%, rgba(224,168,122,.23)); box-shadow: 0 25px 46px rgba(0,0,0,.36), inset 7px 0 12px rgba(255,232,204,.09); }
.nocturne-bottle::before { position: absolute; top: -17%; left: 34%; width: 32%; height: 20%; border: 1px solid rgba(244,218,187,.35); border-bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #47352c, #b98a61, #382923); content: ''; }
.nocturne-bottle::after { position: absolute; right: 13%; bottom: 13%; left: 13%; height: 1px; background: rgba(235,208,180,.45); content: ''; }
.nocturne-bottle i { position: absolute; top: 14%; right: 12%; width: 1px; height: 67%; background: rgba(255,255,255,.17); }
.nocturne-bottle b { position: absolute; right: 0; bottom: 25%; left: 0; color: rgba(242,223,202,.8); font-family: 'DM Sans', sans-serif; font-size: clamp(5px, .7vw, 8px); font-weight: 500; letter-spacing: .17em; text-align: center; }
.nocturne-moon { position: absolute; top: 18%; right: 11%; width: 30%; aspect-ratio: 1; border: 1px solid rgba(226,174,131,.23); border-radius: 50%; box-shadow: 0 0 46px rgba(202,134,93,.12), inset 0 0 34px rgba(202,134,93,.07); }
.nocturne-cover-mark { position: absolute; right: 7%; bottom: 7%; color: rgba(235,218,197,.38); font-family: Georgia,serif; font-size: 20px; }
.feature-caption { align-items: flex-start; flex-direction: column; gap: 12px; }
.feature-info { width: 100%; min-width: 0; }
.feature-info h3 { font-size: 21px; }
.feature-info p { max-width: 460px; margin: 6px 0 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.project-tech { display: inline-flex; flex-wrap: wrap; gap: 7px; color: #6c7b7e; font-size: 9px; font-weight: 600; }
.project-tech i { color: #809a45; font-style: normal; }
.project-actions { display: flex; flex: 0 0 auto; flex-direction: row; gap: 16px; align-items: center; padding-top: 0; }
.project-actions a { color: #63872c; font-size: 10px; font-weight: 800; white-space: nowrap; }
.project-actions a:hover { color: var(--ink); }
.project-actions a span { margin-left: 4px; }
.case-hero { padding-bottom: 56px; }
.case-hero h1 { max-width: 900px; }
.case-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.case-showcase { position: relative; aspect-ratio: 16 / 9; max-width: none; overflow: hidden; border: 1px solid #382b25; border-radius: 17px; background: #171414; box-shadow: 0 27px 70px rgba(23,20,20,.15); }
.case-screenshot { display: block; width: 100%; height: 100%; object-fit: cover; }
.nocturne-cover-large .nocturne-brand { font-size: 15px; }
.nocturne-cover-large .nocturne-cover-copy { top: 30%; left: 12%; gap: 19px; }
.nocturne-cover-large .nocturne-cover-copy > span { font-size: 10px; }
.nocturne-cover-large .nocturne-cover-copy strong { font-size: clamp(64px, 9vw, 112px); }
.nocturne-cover-large .nocturne-bottle { right: 20%; width: 18%; height: 58%; }
.nocturne-cover-large .nocturne-bottle b { font-size: 9px; }
.case-about > p { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-meta > div { display: flex; flex-direction: column; gap: 6px; }
.case-meta span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-meta strong { font-size: 12px; }
.case-scope { max-width: 620px; }
.tech-block { margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(23,45,61,.1); }
.tech-block > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tech-block > div span { padding: 8px 11px; border: 1px solid rgba(23,45,61,.1); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.concept-note { display: flex; align-items: flex-start; gap: 17px; max-width: 920px; padding: 25px; border: 1px solid #e6ddcf; border-radius: 14px; background: #fbf7ef; }
.concept-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ece0cd; color: #705c46; }
.concept-note p { margin: 2px 0 0; color: #665c51; font-size: 12px; line-height: 1.7; }

.section-heading-light .eyebrow { color: #b9c7c9; }
.section-heading-light h2 { color: #fff; }
.section-heading-light > p { color: #bcc8ca; }
.eyebrow-light { color: #c2d0d2; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.faq-layout .section-heading { margin-bottom: 0; }
.faq-layout .section-heading > p { max-width: 290px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 0; cursor: pointer; list-style: none; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #e9efdf; color: #5d7d27; font-size: 18px; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { max-width: 640px; margin: -2px 42px 21px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.cta-band { padding: 65px 0; background: #253f4e; color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-inner h2 { margin: 11px 0 8px; font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.055em; }
.cta-inner p { max-width: 650px; margin: 0; color: #bdc9cb; font-size: 13px; line-height: 1.7; }
.cta-inner .button { flex: 0 0 auto; }

.page-hero { position: relative; overflow: hidden; padding-top: 88px; padding-bottom: 72px; background: var(--paper); }
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
body[data-page="projects"] .page-hero::before,
body[data-page="projects"] .page-hero::after { position: absolute; z-index: 0; inset: -5%; pointer-events: none; content: ''; transition: opacity .8s ease; }
body[data-page="projects"] .page-hero::before { background: radial-gradient(ellipse at 84% 30%, rgba(213,245,108,.18), transparent 28%); opacity: 1; }
body[data-page="projects"] .page-hero::after { background: radial-gradient(ellipse at 84% 30%, rgba(177,109,76,.2), transparent 31%); opacity: 0; }
.page-hero h1 { max-width: 760px; margin: 20px 0 18px; font-size: clamp(46px, 6.3vw, 72px); letter-spacing: -.065em; line-height: 1.03; }
.page-hero p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.detail-grid .section-heading { margin: 0; }
.detail-grid h2 { font-size: clamp(32px, 4.4vw, 49px); }
.check-list { display: grid; gap: 17px; margin: 4px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.check-list li span { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boundary-card { display: flex; min-height: 280px; flex-direction: column; padding: 32px; border-radius: 16px; background: #fff; }
.boundary-card h2 { margin-top: 20px; font-size: 29px; }
.boundary-card p { max-width: 480px; margin: 17px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.boundary-accent { background: var(--dark); color: #fff; }
.boundary-accent .eyebrow { color: #c1d0d1; }
.boundary-accent p { color: #becacd; }
.boundary-scope-visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: auto; padding-top: 25px; }
.boundary-scope-item { display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid rgba(23,45,61,.09); border-radius: 10px; background: #f7f9f6; }
.boundary-scope-item i { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #e9eee5; color: #788a70; font-size: 15px; font-style: normal; font-weight: 600; }
.boundary-scope-item b { color: var(--ink-soft); font-size: 10px; font-weight: 700; line-height: 1.35; }
.boundary-revision-visual { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; margin-top: auto; padding-top: 26px; }
.boundary-revision-step { display: flex; min-width: 0; align-items: center; gap: 9px; }
.boundary-revision-step i { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(213,245,108,.25); border-radius: 50%; background: rgba(213,245,108,.12); color: var(--lime); font-size: 9px; font-style: normal; font-weight: 800; }
.boundary-revision-step b { color: #e4eceb; font-size: 10px; font-weight: 700; line-height: 1.35; }
.boundary-revision-step:last-child i { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 15px; }
.boundary-revision-visual > em { height: 1px; background: rgba(255,255,255,.22); }
.timing-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.timing-layout .section-heading { margin: 0; }
.timing-layout .section-heading > p { font-size: 12px; }
.timing-list { border-top: 1px solid var(--line); }
.timing-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 69px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.timing-row strong { color: var(--ink); font-size: 13px; }
.portfolio-note { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 23px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.portfolio-note-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--lime); color: var(--ink); font-size: 24px; }
.portfolio-note h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.04em; }
.portfolio-note p { max-width: 540px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }

.brief-layout { display: grid; grid-template-columns: .68fr 1.32fr; align-items: start; gap: 24px; }
.brief-aside { position: sticky; top: 108px; padding: 27px; border: 1px solid rgba(23,45,61,.09); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 15px 40px rgba(23,45,61,.045); }
.brief-aside .eyebrow { color: #708b3d; }
.brief-aside h2 { margin-top: 19px; font-size: 32px; }
.brief-aside > p { margin: 13px 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.full-button { width: 100%; }
.brief-aside .full-button { border-color: transparent; background: var(--lime); color: var(--ink); box-shadow: 0 8px 20px rgba(213, 245, 108, .16); }
.brief-aside .full-button:hover { background: #e3ff8b; box-shadow: 0 11px 25px rgba(213, 245, 108, .24); }
.brief-email { display: flex; align-items: center; min-height: 46px; margin-top: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; color: #40535d; font-size: 12px; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.brief-email:hover { border-color: #c8d99a; background: #f8fbea; color: var(--ink); }
.aside-note { display: flex; gap: 12px; margin-top: 22px; padding: 14px; border: 0; border-radius: 10px; background: #f1f5f3; }
.aside-note > span { color: #729031; }
.aside-note p { margin: 0; color: #586870; font-size: 11px; line-height: 1.65; }
.form-card { padding: 33px; border: 1px solid rgba(23,45,61,.07); border-radius: 15px; background: #fff; box-shadow: 0 15px 40px rgba(23,45,61,.04); }
.form-card > h2 { margin: 0; font-size: 27px; letter-spacing: -.045em; }
.form-required { margin: 8px 0 24px; color: var(--muted); font-size: 10px; }
.form-required b, .form-field > span b { color: #658b25; }
.form-field { display: block; margin-bottom: 17px; }
.form-field > span { display: block; margin-bottom: 7px; color: #43555e; font-size: 11px; font-weight: 700; line-height: 1.5; }
.form-field input, .form-field textarea, .form-field select { display: block; width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid #dce3e3; border-radius: 7px; outline: 0; background: #fafbfb; color: var(--ink); font-size: 12px; transition: border .2s, box-shadow .2s, background .2s; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #a3c65d; background: #fff; box-shadow: 0 0 0 3px rgba(213,245,108,.22); }
.form-field textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a1adaf; }
.form-field select:invalid { color: #a1adaf; }
.custom-select { position: relative; z-index: 1; }
.custom-select.is-open { z-index: 30; }
.custom-select .native-select {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  pointer-events: none;
  white-space: nowrap;
}
.select-trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid #dce3e3;
  border-radius: 8px;
  background: #fafbfb;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.select-trigger:hover,
.custom-select.is-open .select-trigger { border-color: #a3c65d; background: #fff; box-shadow: 0 0 0 3px rgba(213,245,108,.18); }
.select-value.is-placeholder { color: #87969c; }
.select-chevron { width: 9px; height: 9px; flex: 0 0 9px; margin: -4px 3px 0 0; transform: rotate(45deg); border-right: 1.7px solid #536771; border-bottom: 1.7px solid #536771; transition: transform .25s ease; }
.custom-select.is-open .select-chevron { margin-top: 5px; transform: rotate(225deg); }
.select-menu {
  position: absolute;
  z-index: 31;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: flex;
  max-height: 250px;
  flex-direction: column;
  gap: 3px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(23,45,61,.09);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23,45,61,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px) scale(.985);
  transform-origin: top center;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.75,.2,1), visibility 0s linear .22s;
}
.select-menu[hidden] { display: none !important; }
.custom-select.is-open .select-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }
.custom-select-option { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 8px; color: #40535d; font-size: 13px; line-height: 1.4; cursor: pointer; transition: background .18s ease, color .18s ease; }
.custom-select-option:hover,
.custom-select-option:focus-visible { outline: none; background: #f1f5e9; color: var(--ink); }
.custom-select-option[aria-selected="true"] { background: #f3f7ea; color: #334d1c; }
.custom-select-option[aria-disabled="true"] { color: #9aa6aa; cursor: default; }
.custom-select-option[data-placeholder="true"] { margin-bottom: 3px; border-bottom: 1px solid #edf0ed; border-radius: 8px 8px 4px 4px; }
.select-option-check { color: #6f9427; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .18s ease; }
.custom-select-option[aria-selected="true"] .select-option-check { opacity: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-button { width: 100%; margin-top: 4px; border: 0; }
.submit-button:disabled { cursor: wait; opacity: .7; }
.honeypot { display: none !important; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.form-status { min-height: 0; margin: 10px 0 0; color: #567523; font-size: 11px; line-height: 1.6; text-align: center; }

.site-footer { padding: 44px 0 18px; background: #132633; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 45px; padding-bottom: 37px; }
.brand-footer .brand-mark { border-color: rgba(255,255,255,.16); background: #243c49; }
.brand-footer .brand-name { color: white; }
.footer-brand > p { max-width: 270px; margin: 15px 0 0; color: #aebdc0; font-size: 11px; line-height: 1.6; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-heading { margin: 5px 0 5px; color: #95a8ac; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-column > a { color: #e1e9e8; font-size: 11px; transition: color .2s; }
.footer-column > a:hover { color: var(--lime); }
.footer-column > a span { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.13); color: #91a3a7; font-size: 9px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.trust-grid .reveal:nth-child(2), .service-grid .reveal:nth-child(2), .project-grid .reveal:nth-child(2) { transition-delay: .08s; }
.trust-grid .reveal:nth-child(3), .service-grid .reveal:nth-child(3), .project-grid .reveal:nth-child(3) { transition-delay: .16s; }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .main-nav { gap: 16px; }
  .nav-link { font-size: 12px; }
  .hero-grid { gap: 15px; }
  .hero-art { min-height: 365px; }
  .orbit-one { width: 340px; height: 340px; }.orbit-two { width: 275px; height: 275px; }
  .browser-card { width: min(370px, 92%); }
  .browser-body { min-height: 255px; padding: 28px 23px; }
  .browser-sample { transform: scale(.86); transform-origin: bottom right; }
  .tag-top { right: -1px; }.tag-bottom { left: -1px; }
  .faq-layout, .detail-grid, .timing-layout { gap: 48px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 40px, 560px); }
  .section-pad { padding: 78px 0; }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-name { font-size: 18px; }.brand-name small { font-size: 8px; }
  .menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 4px; padding: 0; border: 1px solid rgba(23,45,61,.08); border-radius: 12px; background: var(--white); cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
  .menu-toggle:active { transform: scale(.96); }
  .menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--dark); transition: transform .24s cubic-bezier(.2,.75,.2,1), opacity .18s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: scaleX(0); opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: fixed; top: 70px; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; max-height: 0; padding: 0 22px; overflow: hidden; border-bottom: 0 solid var(--line); background: var(--paper); opacity: 0; transition: max-height .3s ease, opacity .2s, padding .3s; }
  .main-nav.open { max-height: calc(100dvh - 70px); padding-top: 14px; padding-bottom: 22px; border-bottom-width: 1px; opacity: 1; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid rgba(23,45,61,.06); font-size: 14px; }
  .nav-link::after { display: none; }
  .language-switch { align-self: flex-start; margin: 13px 0; }
  .language-button { padding: 8px 11px; font-size: 10px; }
  .nav-cta { align-self: stretch; }
  .hero { padding-top: 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 590px; margin-top: 19px; font-size: clamp(43px, 10vw, 64px); }
  .hero-intro { max-width: 520px; font-size: 14px; }
  .hero-note { margin-top: 27px; }
  .hero-art { min-height: 370px; margin-top: 8px; }
  .browser-card { width: min(410px, 85%); }
  .hero-bottom { flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 2px; font-size: 9px; }
  .split-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .detail-grid h2, .boundary-card h2, .brief-aside h2 { font-size: clamp(32px, 8vw, 43px); }
  .trust-grid, .service-grid { grid-template-columns: 1fr; }
  .trust-card { min-height: 155px; }.trust-card h3 { margin-top: 16px; }
  .service-card { min-height: 218px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-visual { min-height: 260px; }
  .nocturne-visual { min-height: 260px; }
  .feature-caption { flex-direction: column; gap: 12px; }
  .project-actions { flex-direction: row; align-items: center; gap: 16px; padding-top: 0; }
  .nocturne-cover-copy strong { font-size: clamp(38px, 10vw, 58px); }
  .case-showcase { min-height: 0; }
  .nocturne-cover-large .nocturne-cover-copy { top: 31%; left: 8%; gap: 13px; }
  .nocturne-cover-large .nocturne-cover-copy strong { font-size: clamp(48px, 12vw, 74px); }
  .nocturne-cover-large .nocturne-bottle { right: 11%; width: 23%; height: 52%; }
  .case-meta { grid-template-columns: 1fr; gap: 15px; }
  .faq-layout, .detail-grid, .timing-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-heading { max-width: 500px; }
  .faq-item summary { font-size: 13px; }
  .cta-band { padding: 48px 0; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .page-hero { padding-top: 64px; padding-bottom: 54px; }
  .page-hero h1 { font-size: clamp(43px, 10vw, 62px); }
  .page-hero p { font-size: 14px; }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-card { min-height: unset; padding: 27px; }
  .boundary-scope-visual { padding-top: 22px; }
  .boundary-scope-item { flex-direction: column; align-items: flex-start; gap: 7px; }
  .boundary-revision-visual { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); padding-top: 22px; }
  .boundary-revision-step { align-items: flex-start; flex-direction: column; gap: 7px; }
  .timing-row { min-height: 65px; font-size: 12px; }.timing-row strong { max-width: 48%; text-align: right; font-size: 12px; }
  .portfolio-note { grid-template-columns: 48px 1fr; padding: 22px; }
  .portfolio-note .button { grid-column: 1 / -1; }
  .brief-layout { grid-template-columns: 1fr; }
  .brief-aside { position: static; }
  .form-card { padding: 25px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 42px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-art { min-height: 325px; }
  .browser-card { width: 88%; }
  .browser-body { min-height: 220px; padding: 25px 18px; }
  .browser-sample { right: 10px; transform: scale(.72); }
  .orbit-one { width: 300px; height: 300px; }.orbit-two { width: 245px; height: 245px; }
  .float-tag { padding: 9px 10px; font-size: 9px; }
  .tag-top { top: 37px; }.tag-bottom { bottom: 28px; }
  .hero-bottom { font-size: 8px; }
  .project-visual { min-height: 225px; }
  .case-showcase { min-height: 0; }
  .nocturne-cover-large .nocturne-brand { top: 9%; font-size: 10px; }
  .nocturne-cover-large .nocturne-cover-copy { top: 33%; gap: 10px; }
  .nocturne-cover-large .nocturne-cover-copy > span { font-size: 7px; }
  .nocturne-cover-large .nocturne-cover-copy strong { font-size: 42px; }
  .nocturne-cover-large .nocturne-bottle { top: 27%; right: 8%; width: 25%; height: 47%; }
  .concept-note { padding: 19px; }
  .mock-layout { width: 75%; padding: 18px; }
  .mock-art { right: 14px; width: 32%; }
  .form-card { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* NOCTURNE case page: a warm, dark palette sampled from the fragrance concept. */
body[data-page="case-nocturne"] {
  --ink: #efe2d5;
  --ink-soft: #cbb6a6;
  --muted: #ae9482;
  --lime: #ead2bb;
  --lime-deep: #c98d6d;
  --paper: #191514;
  --white: #f1e7dc;
  --line: rgba(227, 202, 180, .16);
  --soft: #211a18;
  --dark: #100d0c;
  --dark-2: #33231d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  color: var(--ink);
  background: var(--paper);
}
body[data-page="case-nocturne"] .site-header { border-color: rgba(229, 202, 179, .13); background: rgba(25, 21, 20, .92); }
body[data-page="case-nocturne"] .brand-mark { border-color: rgba(235, 210, 188, .2); background: #271d19; color: #e0b391; }
body[data-page="case-nocturne"] .brand-name > span { color: #d09a78; }
body[data-page="case-nocturne"] .brand-name small { color: #aa9585; }
body[data-page="case-nocturne"] .nav-link { color: #c5b1a2; }
body[data-page="case-nocturne"] .nav-link:hover,
body[data-page="case-nocturne"] .nav-link.active { color: #f3e7da; }
body[data-page="case-nocturne"] .nav-link::after { background: #c98d6d; }
body[data-page="case-nocturne"] .language-switch { border-color: rgba(235, 210, 188, .17); background: #211a18; }
body[data-page="case-nocturne"] .language-button { color: #b9a393; }
body[data-page="case-nocturne"] .language-button.active { background: #d3a17f; color: #211613; }
body[data-page="case-nocturne"] .button-dark { background: #d5a17e; color: #211511; }
body[data-page="case-nocturne"] .button-dark:hover { background: #e2b492; }
body[data-page="case-nocturne"] .button-lime { background: #ead5c0; color: #211511; }
body[data-page="case-nocturne"] .button-lime:hover { background: #f5e5d5; box-shadow: 0 12px 24px rgba(207, 154, 118, .2); }
body[data-page="case-nocturne"] .page-hero { background: radial-gradient(ellipse at 82% 23%, rgba(169, 103, 72, .25), transparent 34%), #191514; }
body[data-page="case-nocturne"] .case-hero h1 { max-width: 820px; font-size: clamp(40px, 5.3vw, 60px); letter-spacing: -.06em; line-height: 1.06; }
body[data-page="case-nocturne"] .section-muted { background: #211a18; }
body[data-page="case-nocturne"] .section-soft { background: #261d19; }
body[data-page="case-nocturne"] .eyebrow { color: #bda28e; }
body[data-page="case-nocturne"] .eyebrow-dot { background: #ce9270; box-shadow: 0 0 0 4px rgba(201, 141, 109, .18); }
body[data-page="case-nocturne"] .check-list li span { background: #dfb48f; color: #281912; font-size: 12px; font-weight: 900; }
body[data-page="case-nocturne"] .case-showcase { border-color: #49342a; box-shadow: 0 27px 70px rgba(0, 0, 0, .34); }
body[data-page="case-nocturne"] .case-meta { border-color: var(--line); }
body[data-page="case-nocturne"] .tech-block { border-color: var(--line); }
body[data-page="case-nocturne"] .tech-block > div span { border-color: rgba(229, 202, 179, .19); background: #2b211d; color: #dfcbbb; }
body[data-page="case-nocturne"] .concept-note { border-color: #594337; background: #2a201c; }
body[data-page="case-nocturne"] .concept-note p { color: #d9c4b2; }
body[data-page="case-nocturne"] .concept-icon { background: #493327; color: #e4b692; }
body[data-page="case-nocturne"] .cta-band { background: #2b201b; }
body[data-page="case-nocturne"] .cta-inner p { color: #d0b9a8; }
body[data-page="case-nocturne"] .site-footer { background: #100d0c; }
body[data-page="case-nocturne"] .brand-footer .brand-mark { background: #211916; }
body[data-page="case-nocturne"] .brand-footer .brand-name { color: #f1e7dc; }
body[data-page="case-nocturne"] .footer-brand > p { color: #ad9888; }
body[data-page="case-nocturne"] .footer-heading,
body[data-page="case-nocturne"] .footer-bottom { color: #a58d7d; }
body[data-page="case-nocturne"] .footer-column > a { color: #e0d1c4; }
body[data-page="case-nocturne"] .footer-column > a:hover { color: #e5b895; }

/* Shared 12-column layout for WebFrames pages. The embedded NOCTURNE demo has
   its own document and stylesheet, so it keeps its original composition. */
body[data-page="home"] .hero-grid,
body[data-page="home"] .split-heading,
body[data-page="home"] .trust-grid,
body[data-page="home"] .service-grid,
body[data-page="services"] .service-grid,
body[data-page="services"] .detail-grid,
body[data-page="services"] .boundary-grid,
body[data-page="services"] .timing-layout,
body[data-page="case-nocturne"] .detail-grid,
body[data-page="projects"] .split-heading,
body[data-page="brief"] .brief-layout,
body[data-page="home"] .faq-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}
body[data-page] .page-hero-inner { max-width: none; }
body[data-page] .page-hero h1 { max-width: 960px; }
body[data-page] .page-hero + .section-pad { padding-top: 72px; }
body[data-page="home"] .hero-copy,
body[data-page="home"] .hero-art { grid-column: span 6; min-width: 0; }
body[data-page="home"] .split-heading > div,
body[data-page="projects"] .split-heading > div { grid-column: span 7; min-width: 0; }
body[data-page="home"] .split-heading > p,
body[data-page="projects"] .split-heading > p { grid-column: span 5; min-width: 0; }
body[data-page="home"] .trust-grid,
body[data-page="home"] .service-grid,
body[data-page="services"] .service-grid { column-gap: 16px; row-gap: 16px; }
body[data-page="home"] .trust-card,
body[data-page="home"] .service-card,
body[data-page="services"] .service-card { grid-column: span 4; min-width: 0; }
body[data-page="services"] .detail-grid > .section-heading,
body[data-page="services"] .timing-layout > .section-heading,
body[data-page="case-nocturne"] .detail-grid > .section-heading { grid-column: span 5; min-width: 0; }
body[data-page="services"] .detail-grid > .check-list,
body[data-page="services"] .timing-layout > .timing-list,
body[data-page="case-nocturne"] .detail-grid > .case-about,
body[data-page="case-nocturne"] .detail-grid > .case-scope { grid-column: span 7; min-width: 0; }
body[data-page="services"] .boundary-card { grid-column: span 6; min-width: 0; }
body[data-page="brief"] .brief-aside { grid-column: span 4; min-width: 0; }
body[data-page="brief"] .form-card { grid-column: span 8; min-width: 0; }
body[data-page="home"] .faq-layout > .section-heading { grid-column: span 4; min-width: 0; }
body[data-page="home"] .faq-list { grid-column: span 8; min-width: 0; }
body[data-page="home"] .project-grid,
body[data-page="projects"] .project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: stretch; }
body[data-page="home"] .project-card,
body[data-page="projects"] .project-card { display: flex; min-width: 0; flex-direction: column; }
body[data-page="home"] .project-grid .project-visual,
body[data-page="projects"] .project-grid .project-visual { min-height: 0; aspect-ratio: 16 / 9; }
body[data-page="home"] .project-card .project-caption,
body[data-page="projects"] .project-card .project-caption { flex: 1; }

@media (max-width: 760px) {
  body[data-page="home"] .hero-grid,
  body[data-page="home"] .split-heading,
  body[data-page="home"] .trust-grid,
  body[data-page="home"] .service-grid,
  body[data-page="services"] .service-grid,
  body[data-page="services"] .detail-grid,
  body[data-page="services"] .boundary-grid,
  body[data-page="services"] .timing-layout,
  body[data-page="case-nocturne"] .detail-grid,
  body[data-page="projects"] .split-heading,
  body[data-page="brief"] .brief-layout,
  body[data-page="home"] .faq-layout { grid-template-columns: 1fr; }
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-art,
  body[data-page="home"] .split-heading > div,
  body[data-page="home"] .split-heading > p,
  body[data-page="projects"] .split-heading > div,
  body[data-page="projects"] .split-heading > p,
  body[data-page="home"] .trust-card,
  body[data-page="home"] .service-card,
  body[data-page="services"] .service-card,
  body[data-page="services"] .detail-grid > .section-heading,
  body[data-page="services"] .detail-grid > .check-list,
  body[data-page="services"] .boundary-card,
  body[data-page="services"] .timing-layout > .section-heading,
  body[data-page="services"] .timing-layout > .timing-list,
  body[data-page="case-nocturne"] .detail-grid > .section-heading,
  body[data-page="case-nocturne"] .detail-grid > .case-about,
  body[data-page="case-nocturne"] .detail-grid > .case-scope,
  body[data-page="brief"] .brief-aside,
  body[data-page="brief"] .form-card,
  body[data-page="home"] .faq-layout > .section-heading,
  body[data-page="home"] .faq-list { grid-column: auto; }
  body[data-page="home"] .project-grid,
  body[data-page="projects"] .project-grid { grid-template-columns: 1fr; }
}

/* Keep service details and timelines compact and balanced instead of leaving
   a large empty half-column beside short content. */
body[data-page="services"] .included-layout,
body[data-page="case-nocturne"] .case-scope-layout { display: block; }
body[data-page="services"] .included-layout .section-heading,
body[data-page="case-nocturne"] .case-scope-layout .section-heading { max-width: 760px; margin-bottom: 30px; }
body[data-page="services"] .included-checks,
body[data-page="case-nocturne"] .case-scope .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  border-top: 1px solid var(--line);
}
body[data-page="services"] .included-checks li,
body[data-page="case-nocturne"] .case-scope .check-list li {
  min-height: 62px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
body[data-page="services"] .included-checks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
body[data-page="case-nocturne"] .case-scope { max-width: none; }
body[data-page="services"] .timing-layout-stack { display: block; }
body[data-page="services"] .timing-layout-stack .section-heading { max-width: 720px; margin-bottom: 30px; }
body[data-page="services"] .timing-layout-stack .timing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}
body[data-page="services"] .timing-layout-stack .timing-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas: "index type" "index value" "index hint";
  min-width: 0;
  min-height: 0;
  align-content: start;
  column-gap: 14px;
  row-gap: 0;
  padding: 20px 21px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1), border-color .25s ease, background .25s ease, box-shadow .25s ease;
  transition-delay: var(--timing-delay, 0s);
}
body[data-page="services"] .timing-layout-stack .timing-row:nth-child(2) { --timing-delay: .08s; }
body[data-page="services"] .timing-layout-stack .timing-row:nth-child(3) { --timing-delay: .16s; }
body[data-page="services"] .timing-layout-stack .timing-row::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime-deep), rgba(182,214,74,0));
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .65s cubic-bezier(.2,.75,.2,1);
  transition-delay: calc(var(--timing-delay, 0s) + .1s);
}
body[data-page="services"] .timing-layout-stack .timing-row.visible::before { transform: scaleX(1); }
body[data-page="services"] .timing-card-head { display: contents; }
body[data-page="services"] .timing-index { grid-area: index; display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #dfe7d8; border-radius: 10px; background: #f4f7ec; color: #718d36; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
body[data-page="services"] .timing-type { grid-area: type; margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1.45; }
body[data-page="services"] .timing-layout-stack .timing-row strong { grid-area: value; max-width: none; margin-top: 4px; color: var(--ink); font-size: 19px; line-height: 1.3; text-align: left; }
body[data-page="services"] .timing-hint { grid-area: hint; position: relative; align-self: end; margin-top: 11px; padding: 9px 0 0; border-top: 1px solid rgba(23,45,61,.08); color: var(--muted); font-size: 10px; line-height: 1.5; }
body[data-page="services"] .timing-row:hover { border-color: #cbd9ae; background: #fff; box-shadow: 0 14px 30px rgba(23,45,61,.08); transition-delay: 0s; }
body[data-page="case-nocturne"] .case-scope .tech-block { margin-top: 28px; }

@media (max-width: 760px) {
  body[data-page="services"] .included-checks,
  body[data-page="case-nocturne"] .case-scope .check-list { grid-template-columns: 1fr; gap: 0; }
  body[data-page="services"] .included-checks li:last-child:nth-child(odd) { grid-column: auto; }
  body[data-page="services"] .timing-layout-stack { display: block; }
  body[data-page="services"] .timing-layout-stack .timing-list { grid-template-columns: 1fr; }
  body[data-page="services"] .timing-layout-stack .timing-row { min-height: 0; }
}

/* Give the process section a clearer journey and stronger, staggered motion. */
body[data-page="home"] .process-heading { display: grid; max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: end; gap: 36px; margin-bottom: 40px; }
body[data-page="home"] .process-heading > p { max-width: 430px; margin: 0 0 5px; }
body[data-page="home"] .process-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; border: 0; }
body[data-page="home"] .process-step {
  position: relative;
  display: flex;
  grid-column: auto;
  min-width: 0;
  min-height: 245px;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  padding: 20px 17px 25px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018) 72%);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
  transition-delay: var(--step-delay, 0s);
}
body[data-page="home"] .process-step:nth-child(2) { --step-delay: .09s; }
body[data-page="home"] .process-step:nth-child(3) { --step-delay: .18s; }
body[data-page="home"] .process-step:nth-child(4) { --step-delay: .27s; }
body[data-page="home"] .process-step:nth-child(5) { --step-delay: .36s; }
body[data-page="home"] .process-step.visible { opacity: 1; transform: none; }
body[data-page="home"] .process-step::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--lime), rgba(213,245,108,0));
  content: '';
  transition: transform .7s cubic-bezier(.2,.75,.2,1);
  transition-delay: calc(var(--step-delay, 0s) + .12s);
}
body[data-page="home"] .process-step.visible::before { transform: scaleX(1); }
body[data-page="home"] .process-num {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(213,245,108,.28);
  border-radius: 14px;
  background: rgba(213,245,108,.1);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  transition: transform .45s cubic-bezier(.2,.75,.2,1), background .35s ease, color .35s ease;
}
body[data-page="home"] .process-num::after { position: absolute; inset: -5px; border: 1px solid rgba(213,245,108,.35); border-radius: 18px; content: ''; opacity: 0; transform: scale(.82); }
body[data-page="home"] .process-step.visible .process-num::after { animation: process-ring .8s ease-out both; animation-delay: calc(var(--step-delay, 0s) + .18s); }
body[data-page="home"] .process-step h3 { max-width: 290px; min-height: 0; margin: 8px 0 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.35; }
body[data-page="home"] .process-step p { max-width: 390px; margin: 0; color: #dce5e7; font-size: 14px; line-height: 1.65; }
body[data-page="home"] .process-step:hover { border-color: rgba(213,245,108,.4); background: radial-gradient(ellipse at 100% 0%, rgba(213,245,108,.1), transparent 52%), linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.025)); box-shadow: 0 20px 42px rgba(4,14,20,.25); transition-delay: 0s; }
body[data-page="home"] .process-step.visible:hover { transform: none; }
body[data-page="home"] .process-step:hover .process-num { transform: translateY(-2px) rotate(-6deg) scale(1.08); background: var(--lime); color: var(--dark); }
@keyframes process-ring { 0% { opacity: .7; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.34); } }
@media (max-width: 1050px) {
  body[data-page="home"] .process-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body[data-page="home"] .process-step { grid-column: span 2; }
  body[data-page="home"] .process-step:nth-child(4) { grid-column: 2 / span 2; }
  body[data-page="home"] .process-step:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 760px) {
  body[data-page="home"] .process-heading { grid-template-columns: 1fr; gap: 14px; }
  body[data-page="home"] .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .process-step { grid-column: auto; min-height: 225px; }
  body[data-page="home"] .process-step:nth-child(4),
  body[data-page="home"] .process-step:nth-child(5) { grid-column: auto; }
  body[data-page="home"] .process-step:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 190px; }
}
@media (max-width: 520px) {
  body[data-page="home"] .process-list { grid-template-columns: 1fr; gap: 12px; }
  body[data-page="home"] .process-step,
  body[data-page="home"] .process-step:last-child:nth-child(odd) { grid-column: auto; min-height: 0; padding: 20px 20px 48px; }
}
@media (max-width: 420px) {
  body[data-page="home"] .project-grid .mock-layout,
  body[data-page="projects"] .project-grid .mock-layout { min-height: 120px; margin-top: 18px; }
}

/* Restore the two-column portfolio presentation and keep four cards balanced. */
body[data-page="projects"] .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-page="projects"] .project-caption { align-items: center; }
body[data-page="projects"] .feature-caption { align-items: flex-start; flex-direction: row; gap: 18px; }
body[data-page="projects"] .feature-info { width: auto; flex: 1; }
body[data-page="projects"] .project-actions { flex-direction: column; align-items: flex-end; gap: 7px; padding-top: 25px; }
@media (max-width: 760px) {
  body[data-page="projects"] .project-grid { grid-template-columns: 1fr; }
  body[data-page="projects"] .project-caption { align-items: flex-start; }
  body[data-page="projects"] .feature-caption { flex-direction: column; gap: 12px; }
  body[data-page="projects"] .project-actions { flex-direction: row; align-items: center; gap: 16px; padding-top: 0; }
}
body[data-page="case-nocturne"] .case-overview-layout { display: block; }
body[data-page="case-nocturne"] .case-overview-layout .section-heading { max-width: 760px; margin-bottom: 24px; }
body[data-page="case-nocturne"] .case-overview-layout .case-about { max-width: none; }
body[data-page="case-nocturne"] .case-overview-layout .case-about > p { max-width: 860px; margin-bottom: 24px; }
body[data-page="case-nocturne"] .case-overview-layout .case-meta { max-width: 860px; margin-top: 0; }

/* Portfolio page: an editorial intro, one featured case and clear placeholders. */
body[data-page="projects"] .projects-hero { padding-top: 78px; padding-bottom: 76px; background: radial-gradient(ellipse at 88% 23%, rgba(213,245,108,.16), transparent 29%), var(--paper); }
body[data-page="projects"] .projects-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .78fr); align-items: center; gap: clamp(44px, 8vw, 112px); }
body[data-page="projects"] .projects-hero .page-hero-inner { max-width: 760px; }
body[data-page="projects"] .projects-hero h1 { max-width: 690px; margin-top: 21px; font-size: clamp(48px, 6vw, 72px); }
body[data-page="projects"] .projects-hero p { max-width: 650px; }
body[data-page="projects"] .projects-scroll-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 30px; padding-bottom: 7px; border-bottom: 1px solid rgba(23,45,61,.2); color: var(--ink); font-size: 12px; font-weight: 800; }
body[data-page="projects"] .projects-scroll-link span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--lime); font-size: 15px; transition: transform .25s; }
body[data-page="projects"] .projects-scroll-link:hover span { transform: translateY(3px); }
body[data-page="projects"] .projects-work-art { position: relative; min-width: 0; width: 100%; aspect-ratio: 1.38; isolation: isolate; }
body[data-page="projects"] .projects-work-glow { position: absolute; z-index: -1; top: 4%; right: 2%; width: 76%; aspect-ratio: 1; border: 1px solid rgba(159,190,78,.14); border-radius: 50%; background: radial-gradient(circle, rgba(213,245,108,.13), transparent 67%); }
body[data-page="projects"] .projects-work-main { position: absolute; z-index: 2; top: 8%; left: 2%; width: 82%; height: 70%; overflow: hidden; transform: rotate(-3deg); border: 1px solid rgba(23,45,61,.1); border-radius: 15px; background: #f8faf7; box-shadow: 0 25px 56px rgba(23,45,61,.16); }
body[data-page="projects"] .projects-work-main img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
body[data-page="projects"] .projects-work-art:hover .projects-work-main img { transform: scale(1.035); }
body[data-page="projects"] .projects-work-main::after { position: absolute; inset: 68% 0 0; background: linear-gradient(180deg, transparent, rgba(23,45,61,.26)); content: ''; }
body[data-page="projects"] .projects-work-slot { position: absolute; display: flex; min-width: 0; align-items: center; gap: 13px; padding: 13px; border: 1px solid rgba(23,45,61,.1); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 17px 36px rgba(23,45,61,.14); }
body[data-page="projects"] .projects-work-slot > span { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #edf2e4; color: #647d35; font-size: 9px; font-weight: 800; }
body[data-page="projects"] .projects-work-slot > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 6px; }
body[data-page="projects"] .projects-work-slot i,
body[data-page="projects"] .projects-work-slot b { display: block; height: 5px; border-radius: 4px; background: #dbe3de; }
body[data-page="projects"] .projects-work-slot i { width: 76%; background: #9fba59; }
body[data-page="projects"] .projects-work-slot b:last-child { width: 59%; height: 4px; }
body[data-page="projects"] .projects-work-slot-two { z-index: 3; top: 23%; right: 0; width: 39%; transform: rotate(4deg); }
body[data-page="projects"] .projects-work-slot-three { z-index: 4; right: 5%; bottom: 9%; width: 48%; transform: rotate(-2deg); background: #f3e9dc; }
body[data-page="projects"] .projects-work-slot-three > span { background: #e8d7c4; color: #8c6148; }
body[data-page="projects"] .projects-work-slot-three i { background: #d49d77; }
body[data-page="projects"] .projects-showcase { padding-top: 83px; padding-bottom: 94px; }
body[data-page="projects"] .projects-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); align-items: end; gap: 48px; margin-bottom: 34px; }
body[data-page="projects"] .projects-section-heading h2 { max-width: 620px; margin: 12px 0 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.12; }
body[data-page="projects"] .projects-section-heading > p { max-width: 420px; margin: 0 0 3px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
body[data-page="projects"] .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
body[data-page="projects"] .projects-grid .project-card-feature { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .86fr); overflow: hidden; border: 1px solid rgba(23,45,61,.1); border-radius: 19px; background: #fff; box-shadow: 0 17px 44px rgba(23,45,61,.055); transition: transform .35s, box-shadow .35s; }
body[data-page="projects"] .projects-grid .project-card-feature:hover { transform: translateY(-4px); box-shadow: 0 25px 60px rgba(23,45,61,.12); }
body[data-page="projects"] .project-card-feature .nocturne-cover-link { min-width: 0; height: 100%; overflow: hidden; background: #171414; }
body[data-page="projects"] .project-card-feature .nocturne-visual { height: 100%; min-height: 360px; aspect-ratio: auto; border: 0; border-radius: 0; transition: none; }
body[data-page="projects"] .project-card-feature .nocturne-preview-image { transition: transform .85s cubic-bezier(.2,.7,.2,1); }
body[data-page="projects"] .project-card-feature:hover .nocturne-preview-image { transform: scale(1.035); }
body[data-page="projects"] .project-card-feature .feature-caption { align-items: stretch; justify-content: space-between; flex-direction: column; gap: 22px; padding: clamp(26px, 3.4vw, 46px); }
body[data-page="projects"] .project-card-feature .eyebrow.tiny { font-size: 9px; }
body[data-page="projects"] .project-card-feature .feature-info h3 { margin-top: 11px; font-size: clamp(28px, 3vw, 39px); letter-spacing: -.06em; }
body[data-page="projects"] .project-card-feature .feature-info p { max-width: 390px; margin: 9px 0 17px; font-size: 12px; line-height: 1.75; }
body[data-page="projects"] .project-card-feature .project-tech { gap: 9px; font-size: 10px; }
body[data-page="projects"] .project-card-feature .project-actions { align-items: center; justify-content: flex-start; flex-direction: row; flex-wrap: wrap; gap: 11px 18px; margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(23,45,61,.1); }
body[data-page="projects"] .project-card-feature .project-actions a { font-size: 11px; }
body[data-page="projects"] .project-card-feature .project-actions a:first-child { display: inline-flex; align-items: center; min-height: 43px; padding: 0 15px; border-radius: 8px; background: var(--dark); color: #fff; transition: transform .2s, background .2s; }
body[data-page="projects"] .project-card-feature .project-actions a:first-child { min-height: 46px; gap: 9px; padding: 0 18px; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-shadow: none; }
body[data-page="projects"] .project-card-feature .project-actions a:first-child span { margin-left: 0; font-size: 14px; font-weight: 500; line-height: 1; }
body[data-page="projects"] .project-card-feature .project-actions a:first-child:hover { transform: translateY(-2px); background: var(--dark-2); color: #fff; }
body[data-page="projects"] .project-card-feature .project-actions a:last-child { color: #63872c; }
body[data-page="projects"] .project-card-feature:hover .nocturne-visual { transform: none; }
body[data-page="projects"] .project-card-placeholder { overflow: hidden; border: 1px solid rgba(23,45,61,.09); border-radius: 16px; background: rgba(255,255,255,.72); transition: transform .32s, border-color .32s, background .32s, box-shadow .32s; }
body[data-page="projects"] .project-card-placeholder:hover { transform: translateY(-5px); border-color: rgba(114,145,52,.28); background: #fff; box-shadow: 0 18px 42px rgba(23,45,61,.09); }
body[data-page="projects"] .project-card-placeholder .project-visual { min-height: 0; margin: 9px 9px 0; aspect-ratio: 1.48; border: 0; border-radius: 11px; transition: none; }
body[data-page="projects"] .project-card-placeholder .browser-bar { top: 15px; right: 17px; left: 17px; height: 23px; }
body[data-page="projects"] .project-card-placeholder .mock-layout { width: min(77%, 310px); min-height: 135px; margin-top: 23px; padding: 18px; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
body[data-page="projects"] .project-card-placeholder:hover .mock-layout { transform: translateY(-3px) rotate(-.6deg); }
body[data-page="projects"] .project-card-placeholder .mock-art { top: 36px; right: 15px; height: 78px; }
body[data-page="projects"] .project-card-placeholder .mock-art b { width: 38px; height: 38px; transition: transform .45s; }
body[data-page="projects"] .project-card-placeholder:hover .mock-art b { transform: scale(1.08) rotate(18deg); }
body[data-page="projects"] .project-card-placeholder .project-stamp { right: 16px; bottom: 12px; font-size: 21px; }
body[data-page="projects"] .project-card-placeholder .project-caption { align-items: center; gap: 10px; padding: 17px 17px 18px; }
body[data-page="projects"] .project-card-placeholder .project-caption h3 { margin-top: 6px; font-size: 15px; }
body[data-page="projects"] .project-placeholder-status { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(23,45,61,.08); border-radius: 999px; background: #f5f7f2; color: #66777f; font-size: 9px; font-weight: 700; }
body[data-page="projects"] .projects-next-section { padding-top: 76px; }
body[data-page="projects"] .projects-invite { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 25px; padding: clamp(24px, 4vw, 42px); overflow: hidden; border-radius: 19px; background: var(--dark); color: #fff; }
body[data-page="projects"] .projects-invite::after { position: absolute; top: -120px; right: 11%; width: 240px; height: 240px; border: 1px solid rgba(213,245,108,.16); border-radius: 50%; content: ''; pointer-events: none; }
body[data-page="projects"] .projects-invite-index { position: relative; z-index: 1; display: grid; width: 60px; height: 60px; place-items: center; border: 1px solid rgba(213,245,108,.28); border-radius: 17px; background: rgba(213,245,108,.09); color: var(--lime); font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; }
body[data-page="projects"] .projects-invite-index i { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border: 3px solid var(--dark); border-radius: 50%; background: var(--lime); }
body[data-page="projects"] .projects-invite-copy { position: relative; z-index: 1; }
body[data-page="projects"] .projects-invite-copy .eyebrow { color: #c0cdcf; }
body[data-page="projects"] .projects-invite-copy h2 { margin: 9px 0 7px; font-size: clamp(23px, 2.8vw, 32px); letter-spacing: -.05em; }
body[data-page="projects"] .projects-invite-copy p { max-width: 600px; margin: 0; color: #becacd; font-size: 12px; line-height: 1.7; }
body[data-page="projects"] .projects-invite .button { position: relative; z-index: 1; white-space: nowrap; }
@keyframes portfolio-orbit { to { transform: rotate(360deg); } }

@media (hover: hover) and (pointer: fine) {
  body[data-page] .menu-toggle:hover { transform: translateY(-1px); background: var(--soft); box-shadow: 0 7px 16px rgba(23,45,61,.14); }
}

@media (max-width: 1050px) {
  body[data-page="projects"] .projects-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(275px, .75fr); gap: 34px; }
  body[data-page="projects"] .projects-grid .project-card-feature { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
  body[data-page="projects"] .project-card-placeholder .project-caption { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  body[data-page="projects"] .projects-hero { padding-top: 60px; padding-bottom: 58px; }
  body[data-page="projects"] .projects-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  body[data-page="projects"] .projects-work-art { width: min(100%, 560px); min-height: 0; margin-inline: auto; }

  body[data-page="projects"] .projects-showcase { padding-top: 64px; padding-bottom: 70px; }
  body[data-page="projects"] .projects-section-heading { grid-template-columns: 1fr; gap: 13px; margin-bottom: 26px; }
  body[data-page="projects"] .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="projects"] .projects-grid .project-card-feature { grid-template-columns: 1fr; }
  body[data-page="projects"] .project-card-feature .nocturne-cover-link { height: auto; }
  body[data-page="projects"] .project-card-feature .nocturne-visual { min-height: 0; aspect-ratio: 16 / 9; }
  body[data-page="projects"] .project-card-feature .feature-caption { gap: 19px; padding: 24px; }
  body[data-page="projects"] .project-card-placeholder .project-caption { flex-direction: row; }
  body[data-page="projects"] .projects-grid .project-card-placeholder:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  body[data-page="projects"] .projects-invite { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
  body[data-page="projects"] .projects-invite-index { width: 50px; height: 50px; border-radius: 14px; }
  body[data-page="projects"] .projects-invite .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  body[data-page="projects"] .projects-hero h1 { font-size: clamp(43px, 11vw, 58px); }
  body[data-page="projects"] .projects-hero { padding-bottom: 38px; }
  body[data-page="projects"] .projects-hero-grid { gap: 24px; }
  body[data-page="projects"] .projects-work-art { width: min(calc(100% - 16px), 440px); }
  body[data-page="projects"] .projects-work-main { width: 85%; height: 68%; }
  body[data-page="projects"] .projects-work-slot { gap: 7px; padding: 8px; border-radius: 10px; }
  body[data-page="projects"] .projects-work-slot > span { flex-basis: 23px; width: 23px; height: 23px; border-radius: 7px; font-size: 8px; }
  body[data-page="projects"] .projects-work-slot > div { gap: 4px; }
  body[data-page="projects"] .projects-work-slot i,
  body[data-page="projects"] .projects-work-slot b { height: 4px; }
  body[data-page="projects"] .projects-work-slot b:last-child { height: 3px; }
  body[data-page="projects"] .projects-work-slot-two { top: 22%; right: 3%; width: 39%; }
  body[data-page="projects"] .projects-work-slot-three { right: 3%; bottom: 11%; width: 46%; }
  body[data-page="projects"] .projects-showcase { padding-top: 44px; padding-bottom: 56px; }




  body[data-page="projects"] .projects-grid { grid-template-columns: 1fr; }
  body[data-page="projects"] .projects-grid .project-card-feature { display: flex; flex-direction: column; }
  body[data-page="projects"] .project-card-feature .nocturne-visual { min-height: 0; aspect-ratio: 16 / 9; }
  body[data-page="projects"] .project-card-feature .feature-caption { gap: 18px; padding: 23px; }
  body[data-page="projects"] .project-card-feature .project-actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  body[data-page="projects"] .project-card-placeholder .project-visual { aspect-ratio: 1.6; }
  body[data-page="projects"] .project-card-placeholder .project-caption { align-items: center; flex-direction: row; }
  body[data-page="projects"] .projects-grid .project-card-placeholder:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  body[data-page="projects"] .projects-invite { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  body[data-page="projects"] .projects-invite .button { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="projects"] .projects-work-art img { animation: none; }
  body[data-page="projects"] .project-card-feature,
  body[data-page="projects"] .project-card-feature .nocturne-preview-image,
  body[data-page="projects"] .project-card-placeholder,
  body[data-page="projects"] .project-card-placeholder .mock-layout,
  body[data-page="projects"] .project-card-placeholder .mock-art b { transition: none; }
}

/* Make the FAQ feel responsive: staggered entrance, animated answer, and clear toggle feedback. */
body[data-page="home"] .faq-item {
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1), border-color .3s ease;
  transition-delay: var(--faq-delay, 0s);
}
body[data-page="home"] .faq-item.visible { opacity: 1; transform: translateY(0); }
body[data-page="home"] .faq-item:nth-child(2) { --faq-delay: .07s; }
body[data-page="home"] .faq-item:nth-child(3) { --faq-delay: .14s; }
body[data-page="home"] .faq-item:nth-child(4) { --faq-delay: .21s; }
body[data-page="home"] .faq-item:nth-child(5) { --faq-delay: .28s; }
body[data-page="home"] .faq-item::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--lime);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
}
body[data-page="home"] .faq-item:hover::after,
body[data-page="home"] .faq-item[open]::after { transform: scaleX(1); }
body[data-page="home"] .faq-item summary { padding-right: 10px; transition: color .25s ease, transform .3s cubic-bezier(.2,.75,.2,1); }
body[data-page="home"] .faq-item summary:hover { color: var(--lime-deep); }
body[data-page="home"] .faq-item.is-animating summary { transform: none; }
body[data-page="home"] .faq-item summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
body[data-page="home"] .faq-item summary span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 20px;
  transition: transform .4s cubic-bezier(.2,.75,.2,1), background .3s ease, color .3s ease, box-shadow .3s ease;
}
body[data-page="home"] .faq-item summary:hover span { transform: scale(1.1); box-shadow: 0 5px 14px rgba(20,40,50,.12); }
body[data-page="home"] .faq-item[open] summary span { transform: rotate(45deg) scale(1.08); background: var(--lime); color: var(--dark); }
body[data-page="home"] .faq-item[open] summary:hover span { transform: rotate(45deg) scale(1.15); }
body[data-page="home"] .faq-item.is-animating[open] summary span,
body[data-page="home"] .faq-item.is-animating summary:hover span { transform: rotate(45deg) scale(1); box-shadow: none; }
body[data-page="home"] .faq-item.is-closing[open] summary span,
body[data-page="home"] .faq-item.is-closing summary:hover span { transform: rotate(0) scale(1); }
body[data-page="home"] .faq-item > p { transform-origin: top; }
body[data-page="home"] .faq-item[open] > p { animation: faq-answer-in .42s cubic-bezier(.2,.75,.2,1); }
body[data-page="home"] .faq-item.is-closing > p { animation: faq-answer-out .22s ease both; }
@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-9px) scaleY(.96); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes faq-answer-out {
  to { opacity: 0; transform: translateY(-6px) scaleY(.98); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .faq-item { opacity: 1; transform: none; }
}

/* Real process photography and device mockups bring visual texture to the service pages. */
body[data-page="home"] .hero-photo-panel { position: absolute; z-index: 1; top: 24px; right: 3%; width: 75%; height: 78%; margin: 0; overflow: hidden; transform: rotate(4deg); border: 1px solid rgba(255,255,255,.38); border-radius: 20px; background: #1d3340; box-shadow: 0 30px 70px rgba(23,45,61,.2); }
body[data-page="home"] .hero-photo-panel::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,37,.04) 35%, rgba(12,28,37,.69)); content: ''; pointer-events: none; }
body[data-page="home"] .hero-photo-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78); }
body[data-page="home"] .hero-photo-panel figcaption { position: absolute; z-index: 1; right: 15px; bottom: 13px; left: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.9); }
body[data-page="home"] .hero-photo-panel figcaption > span { font-size: 8px; font-weight: 800; letter-spacing: .14em; }
body[data-page="home"] .hero-art .browser-card { z-index: 2; width: min(355px, 78%); margin: 64px 62px 0 -24px; transform: rotate(-4deg); }
body[data-page="home"] .hero-art .float-tag { z-index: 3; }

body[data-page="services"] .services-hero { background: radial-gradient(ellipse at 85% 38%, rgba(213,245,108,.16), transparent 28%), var(--paper); }
body[data-page="services"] .services-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); align-items: center; gap: clamp(38px, 6vw, 82px); }
body[data-page="services"] .services-hero .page-hero-inner { max-width: 700px; }
body[data-page="services"] .services-device-art,
body[data-page="brief"] .services-device-art { position: relative; width: 100%; aspect-ratio: 1.38; perspective: 900px; }
body[data-page="services"] .services-device-orbit,
body[data-page="brief"] .services-device-orbit { position: absolute; top: 2%; right: 2%; width: 75%; aspect-ratio: 1; border: 1px solid rgba(23,45,61,.08); border-radius: 50%; background: radial-gradient(circle, rgba(213,245,108,.13), transparent 68%); }
body[data-page="services"] .services-device-orbit::before,
body[data-page="services"] .services-device-orbit::after,
body[data-page="brief"] .services-device-orbit::before,
body[data-page="brief"] .services-device-orbit::after { position: absolute; inset: 10%; border: 1px solid rgba(23,45,61,.06); border-radius: 50%; content: ''; }
body[data-page="services"] .services-device-orbit::after,
body[data-page="brief"] .services-device-orbit::after { inset: 23%; border-color: rgba(182,214,74,.22); }
body[data-page="services"] .services-laptop,
body[data-page="brief"] .services-laptop { position: absolute; top: 16%; left: 2%; width: 82%; transform: rotateY(-11deg) rotateZ(-4deg); transform-style: preserve-3d; animation: device-float 6s ease-in-out infinite; }
body[data-page="services"] .services-screen,
body[data-page="brief"] .services-screen { position: relative; z-index: 1; padding: 10px 12px 13px; overflow: hidden; border: 7px solid #193344; border-bottom-width: 10px; border-radius: 13px 13px 8px 8px; background: #f9faf7; box-shadow: 0 24px 50px rgba(23,45,61,.17); }
body[data-page="services"] .screen-nav,
body[data-page="brief"] .screen-nav { display: flex; height: 18px; align-items: center; gap: 7px; border-bottom: 1px solid #e8ece8; }
body[data-page="services"] .screen-nav i,
body[data-page="brief"] .screen-nav i { width: 12px; height: 4px; border-radius: 4px; background: var(--lime-deep); }
body[data-page="services"] .screen-nav span,
body[data-page="brief"] .screen-nav span { width: 36%; height: 4px; border-radius: 4px; background: #d6dfdc; }
body[data-page="services"] .screen-nav b,
body[data-page="brief"] .screen-nav b { width: 28px; height: 8px; margin-left: auto; border-radius: 4px; background: #e7eddd; }
body[data-page="services"] .screen-hero,
body[data-page="brief"] .screen-hero { display: flex; min-height: 117px; align-items: center; gap: 12px; padding: 12px 8px; background: linear-gradient(100deg, #eff3ed, #f8f9f6); }
body[data-page="services"] .screen-hero > div,
body[data-page="brief"] .screen-hero > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 7px; }
body[data-page="services"] .screen-hero i,
body[data-page="brief"] .screen-hero i { width: 34px; height: 4px; border-radius: 3px; background: #9fba59; }
body[data-page="services"] .screen-hero b,
body[data-page="brief"] .screen-hero b { width: 88%; height: 8px; border-radius: 3px; background: #244051; }
body[data-page="services"] .screen-hero b:nth-of-type(2),
body[data-page="brief"] .screen-hero b:nth-of-type(2) { width: 62%; }
body[data-page="services"] .screen-hero em,
body[data-page="brief"] .screen-hero em { width: 41px; height: 12px; margin-top: 3px; border-radius: 4px; background: var(--lime); }
body[data-page="services"] .screen-hero > span,
body[data-page="brief"] .screen-hero > span { width: 76px; aspect-ratio: 1; border: 11px solid #d5ef80; border-radius: 50%; background: #f2f5e7; box-shadow: inset 0 0 0 1px rgba(23,45,61,.06); }
body[data-page="services"] .screen-cards,
body[data-page="brief"] .screen-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 9px 4px 1px; }
body[data-page="services"] .screen-cards i,
body[data-page="brief"] .screen-cards i { height: 30px; border: 1px solid #e5eae6; border-radius: 4px; background: linear-gradient(160deg, #fff, #edf1ed); }
body[data-page="services"] .services-laptop-base,
body[data-page="brief"] .services-laptop-base { position: relative; z-index: 0; width: 108%; height: 11px; margin: -1px 0 0 -4%; transform: rotateX(54deg); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #bcc8c9, #e4e9e6 45%, #aebbc0); box-shadow: 0 13px 24px rgba(23,45,61,.17); }
body[data-page="services"] .services-phone,
body[data-page="brief"] .services-phone { position: absolute; z-index: 2; right: 1%; bottom: 8%; width: 22%; height: 63%; padding: 6px; transform: rotate(7deg); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #193344; box-shadow: 0 21px 40px rgba(23,45,61,.24); animation: device-float 5.5s ease-in-out -1.6s infinite; }
body[data-page="services"] .services-phone-screen,
body[data-page="brief"] .services-phone-screen { display: flex; height: 100%; flex-direction: column; gap: 8px; padding: 16px 7px 9px; border-radius: 12px; background: #f9faf7; }
body[data-page="services"] .services-phone-screen i,
body[data-page="brief"] .services-phone-screen i { width: 24px; height: 4px; border-radius: 3px; background: #aac25f; }
body[data-page="services"] .services-phone-screen b,
body[data-page="brief"] .services-phone-screen b { width: 88%; height: 6px; border-radius: 3px; background: #284353; }
body[data-page="services"] .services-phone-screen b:nth-of-type(2),
body[data-page="brief"] .services-phone-screen b:nth-of-type(2) { width: 62%; }
body[data-page="services"] .services-phone-screen span,
body[data-page="brief"] .services-phone-screen span { flex: 1; margin-top: 3px; border-radius: 6px; background: linear-gradient(145deg, #e2e9df, #cad8d0); }
body[data-page="services"] .services-phone-screen em,
body[data-page="brief"] .services-phone-screen em { width: 48%; height: 9px; border-radius: 4px; background: var(--lime); }
body[data-page="services"] .services-device-tag,
body[data-page="brief"] .services-device-tag { position: absolute; right: 3%; bottom: 0; padding: 8px 10px; border: 1px solid rgba(23,45,61,.09); border-radius: 999px; background: rgba(255,255,255,.82); color: #738186; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
body[data-page="services"] .service-detail-card { min-height: 408px; padding: 20px; }
body[data-page="services"] .service-detail-visual { position: relative; height: 160px; margin: -20px -20px 20px; overflow: hidden; border-radius: 13px 13px 8px 8px; background: #dce5e0; }
body[data-page="services"] .service-detail-visual::after { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(12,26,34,.68)); content: ''; pointer-events: none; }
body[data-page="services"] .service-detail-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
body[data-page="services"] .service-detail-card:hover .service-detail-visual img { transform: scale(1.045); }
body[data-page="services"] .service-detail-visual figcaption { position: absolute; z-index: 1; right: 12px; bottom: 11px; left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgba(255,255,255,.92); font-size: 8px; font-weight: 700; }
body[data-page="services"] .service-detail-visual figcaption > span { letter-spacing: .12em; }
body[data-page="services"] .service-detail-card h3 { margin-top: 16px; }

body[data-page="brief"] .brief-hero { background: radial-gradient(ellipse at 84% 32%, rgba(213,245,108,.16), transparent 31%), var(--paper); }
body[data-page="brief"] .brief-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
body[data-page="brief"] .brief-hero .page-hero-inner { max-width: 720px; }
body[data-page="brief"] .brief-hero-visual { min-width: 0; margin: 0; }
body[data-page="brief"] .brief-art { position: relative; width: 100%; aspect-ratio: 1.45; overflow: visible; }
body[data-page="brief"] .brief-art-svg { display: block; width: 100%; height: 100%; overflow: visible; }
body[data-page="brief"] .brief-art-sheet { transform-box: fill-box; transform-origin: center; animation: device-float 6.2s ease-in-out infinite; }
body[data-page="brief"] .brief-art-note { transform-box: fill-box; transform-origin: center; animation: device-float 5.4s ease-in-out -1.4s infinite; }
@keyframes device-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

@media (max-width: 960px) {
  body[data-page="services"] .services-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 28px; }
  body[data-page="services"] .services-screen,
  body[data-page="brief"] .services-screen { padding: 8px 9px 10px; }
  body[data-page="services"] .screen-hero,
  body[data-page="brief"] .screen-hero { min-height: 95px; }
  body[data-page="services"] .services-phone { width: 23%; }
  body[data-page="brief"] .brief-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(285px, .8fr); gap: 32px; }
}
@media (max-width: 760px) {
  body[data-page="home"] .hero-photo-panel { top: 4px; right: 4%; width: 88%; height: 70%; }
  body[data-page="home"] .hero-art .browser-card { width: min(340px, 77%); margin: 70px auto 0; }
  body[data-page="services"] .services-hero { padding-top: 64px; padding-bottom: 62px; }
  body[data-page="services"] .services-hero-grid,
  body[data-page="brief"] .brief-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  body[data-page="services"] .services-device-art { width: min(100%, 500px); margin-inline: auto; }
  body[data-page="services"] .service-detail-card { min-height: 0; }
  body[data-page="services"] .service-detail-visual { height: 205px; }
  body[data-page="brief"] .brief-hero-visual { width: min(100%, 540px); margin-inline: auto; }
}
@media (max-width: 420px) {
  body[data-page="home"] .hero-photo-panel { height: 67%; }
  body[data-page="home"] .hero-photo-panel figcaption { right: 10px; bottom: 9px; left: 10px; }
  body[data-page="home"] .hero-art .browser-card { width: 77%; margin: 58px auto 0; }
  body[data-page="services"] .services-device-art { width: 100%; margin-left: 0; }
  body[data-page="services"] .services-phone { right: 3%; }
  body[data-page="services"] .screen-hero > span,
  body[data-page="brief"] .screen-hero > span { width: 58px; border-width: 8px; }
  body[data-page="services"] .service-detail-visual { height: 180px; }
  body[data-page="services"] .service-detail-visual figcaption { right: 9px; left: 9px; }
  body[data-page="brief"] .brief-hero-visual { width: min(100%, 440px); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="services"] .services-laptop,
  body[data-page="services"] .services-phone,
  body[data-page="brief"] .services-laptop,
  body[data-page="brief"] .services-phone,
  body[data-page="brief"] .brief-art-sheet,
  body[data-page="brief"] .brief-art-note { animation: none; }
  body[data-page="services"] .service-detail-visual img { transition: none; }
}

/* NOCTURNE case page: an editorial case-study rhythm with warmer details. */
body[data-page="case-nocturne"] .case-hero { padding-top: 94px; padding-bottom: 82px; }
body[data-page="case-nocturne"] .case-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .72fr); align-items: center; gap: clamp(42px, 7vw, 100px); }
body[data-page="case-nocturne"] .case-hero-copy { max-width: 700px; }
body[data-page="case-nocturne"] .case-hero h1 { max-width: 690px; margin-top: 21px; font-size: clamp(40px, 5.1vw, 58px); line-height: 1.07; letter-spacing: -.06em; }
body[data-page="case-nocturne"] .case-hero-copy > p { max-width: 620px; font-size: 15px; line-height: 1.8; }
body[data-page="case-nocturne"] .case-hero-actions { gap: 14px 22px; margin-top: 24px; }
body[data-page="case-nocturne"] .case-scent-art { position: relative; width: 100%; min-width: 0; margin: 0; aspect-ratio: 1.36; }
body[data-page="case-nocturne"] .case-scent-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(0,0,0,.17)); animation: nocturne-art-float 7s ease-in-out infinite; }
@keyframes nocturne-art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
body[data-page="case-nocturne"] .case-preview-section { padding-top: 70px; }
body[data-page="case-nocturne"] .case-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 26px; }
body[data-page="case-nocturne"] .case-preview-heading h2 { margin: 11px 0 0; color: #f1e4d8; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.12; letter-spacing: -.055em; }
body[data-page="case-nocturne"] .case-preview-heading > p { max-width: 440px; margin: 0 0 2px; color: #c5b1a2; font-size: 12px; line-height: 1.75; }
body[data-page="case-nocturne"] .case-showcase { margin: 0; aspect-ratio: auto; border-color: rgba(229,202,179,.17); border-radius: 20px; background: #171211; box-shadow: 0 32px 80px rgba(0,0,0,.3); }
body[data-page="case-nocturne"] .case-screenshot { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
body[data-page="case-nocturne"] .case-showcase figcaption { position: static; display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid rgba(229,202,179,.12); color: rgba(216,194,175,.8); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body[data-page="case-nocturne"] .case-overview-section { background: #191514; }
body[data-page="case-nocturne"] .case-overview-intro { max-width: 790px; }
body[data-page="case-nocturne"] .case-overview-intro h2 { margin: 13px 0 15px; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.055em; }
body[data-page="case-nocturne"] .case-overview-intro > p { max-width: 740px; margin: 0; color: #cbb6a6; font-size: 14px; line-height: 1.85; }
body[data-page="case-nocturne"] .case-meta { max-width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; padding: 0; border: 0; }
body[data-page="case-nocturne"] .case-meta > div { min-height: 92px; justify-content: center; gap: 8px; padding: 15px 17px; border: 1px solid rgba(229,202,179,.13); border-radius: 13px; background: rgba(255,255,255,.025); }
body[data-page="case-nocturne"] .case-meta span { color: #a98d7a; font-size: 8px; letter-spacing: .13em; }
body[data-page="case-nocturne"] .case-meta strong { color: #e8d8ca; font-size: 11px; line-height: 1.45; }
body[data-page="case-nocturne"] .case-scope-layout .section-heading { max-width: 700px; margin-bottom: 28px; }
body[data-page="case-nocturne"] .case-scope-layout .section-heading h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.055em; }
body[data-page="case-nocturne"] .case-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
body[data-page="case-nocturne"] .case-scope-item { display: grid; min-height: 91px; grid-template-columns: 30px minmax(0, 1fr) 27px; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(229,202,179,.13); border-radius: 14px; background: rgba(255,255,255,.025); transition: border-color .25s ease, background .25s ease, transform .25s ease; }
body[data-page="case-nocturne"] .case-scope-item:hover { transform: translateY(-2px); border-color: rgba(213,161,126,.38); background: rgba(255,255,255,.045); }
body[data-page="case-nocturne"] .case-scope-number { color: #c18c6b; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
body[data-page="case-nocturne"] .case-scope-item p { margin: 0; color: #e4d5c8; font-size: 12px; line-height: 1.65; }
body[data-page="case-nocturne"] .case-scope-item > i { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(213,161,126,.28); border-radius: 50%; background: rgba(213,161,126,.09); color: #e1b38f; font-size: 11px; font-style: normal; }
body[data-page="case-nocturne"] .case-scope .tech-block { margin-top: 28px; padding-top: 21px; border-color: rgba(229,202,179,.13); }
body[data-page="case-nocturne"] .concept-note { max-width: 100%; align-items: center; padding: 22px 25px; border-radius: 16px; background: linear-gradient(120deg, #2a201c, #241b18); }
body[data-page="case-nocturne"] .case-note-label { display: block; margin: 0 0 7px; color: #d3a17f; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
body[data-page="case-nocturne"] .concept-note p { margin: 0; font-size: 12px; }
body[data-page="case-nocturne"] .case-cta { position: relative; overflow: hidden; background: radial-gradient(ellipse at 90% 50%, rgba(175,106,73,.18), transparent 34%), #2b201b; }
body[data-page="case-nocturne"] .case-cta::after { position: absolute; top: -130px; right: -100px; width: 360px; height: 360px; border: 1px solid rgba(229,202,179,.1); border-radius: 50%; content: ''; pointer-events: none; }
body[data-page="case-nocturne"] .case-cta .container { position: relative; z-index: 1; }

@media (max-width: 960px) {
  body[data-page="case-nocturne"] .case-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr); gap: 32px; }
  body[data-page="case-nocturne"] .case-scent-art { width: min(100%, 490px); justify-self: center; }
}
@media (max-width: 760px) {
  body[data-page="case-nocturne"] .case-hero { padding-top: 64px; padding-bottom: 58px; }
  body[data-page="case-nocturne"] .case-hero-grid { grid-template-columns: 1fr; gap: 31px; }
  body[data-page="case-nocturne"] .case-hero-copy { max-width: 680px; }
  body[data-page="case-nocturne"] .case-hero h1 { max-width: 640px; font-size: clamp(40px, 8vw, 54px); }
  body[data-page="case-nocturne"] .case-scent-art { width: min(100%, 520px); }
  body[data-page="case-nocturne"] .case-preview-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  body[data-page="case-nocturne"] .case-preview-heading > p { max-width: 600px; }
  body[data-page="case-nocturne"] .case-meta { grid-template-columns: 1fr; }
  body[data-page="case-nocturne"] .case-meta > div { min-height: 70px; }
  body[data-page="case-nocturne"] .case-scope-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body[data-page="case-nocturne"] .case-hero h1 { font-size: clamp(38px, 10vw, 44px); }
  body[data-page="case-nocturne"] .case-scent-art { width: min(100%, 460px); }
  body[data-page="case-nocturne"] .case-showcase figcaption { padding: 11px 12px; font-size: 7px; }
  body[data-page="case-nocturne"] .case-scope-item { grid-template-columns: 23px minmax(0, 1fr) 25px; gap: 10px; padding: 14px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="case-nocturne"] .case-scent-art img { animation: none; }
}

/* Give tablet layouts enough room for copy and case previews before they stack. */
@media (min-width: 761px) and (max-width: 960px) {
  body[data-page="projects"] .projects-grid .project-card-feature { grid-template-columns: 1fr; }
  body[data-page="projects"] .project-card-feature .nocturne-cover-link { height: auto; }
  body[data-page="projects"] .project-card-feature .nocturne-visual { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (min-width: 761px) and (max-width: 900px) {
  body[data-page="home"] .trust-grid,
  body[data-page="home"] .service-grid,
  body[data-page="services"] .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .trust-card,
  body[data-page="home"] .service-card,
  body[data-page="services"] .service-card { grid-column: auto; }
  body[data-page="home"] .trust-grid > :last-child,
  body[data-page="home"] .service-grid > :last-child,
  body[data-page="services"] .service-grid > :last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }

  body[data-page="services"] .boundary-grid { grid-template-columns: 1fr; }
  body[data-page="services"] .boundary-card { grid-column: auto; }
  body[data-page="services"] .timing-layout-stack .timing-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="services"] .timing-layout-stack .timing-row:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }

  body[data-page="projects"] .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="projects"] .projects-grid .project-card-placeholder:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }

  body[data-page="brief"] .brief-layout { grid-template-columns: 1fr; }
  body[data-page="brief"] .brief-aside,
  body[data-page="brief"] .form-card { grid-column: auto; }
}
