:root {
  --page-top-gap: clamp(24px, 3.2vw, 40px);
  color-scheme: light;
  --paper: #f2f0e8;
  --panel: #fbfaf4;
  --ink: #171914;
  --muted: #73766d;
  --line: rgba(23, 25, 20, .2);
  --fine: rgba(23, 25, 20, .08);
  --orange: #ff5636;
  --yellow: #f2d64b;
  --blue: #5c88ff;
  --brand: #3459d9;
  --green: #b8ff4e;
  --purple: #9b7bff;
  --shadow: 0 28px 80px rgba(31, 32, 25, .14);
  --display: "Segoe UI Variable Display", "Aptos Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "Segoe UI Variable Text", "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11130f;
  --panel: #191c17;
  --ink: #f3f1e7;
  --muted: #9ba094;
  --line: rgba(243, 241, 231, .22);
  --fine: rgba(243, 241, 231, .08);
  --orange: #ff7154;
  --yellow: #f1da58;
  --blue: #769cff;
  --brand: #5878ef;
  --green: #baff55;
  --purple: #aa91ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
button { color: inherit; font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; left: 50%; bottom: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; transform: translate(-50%, 160%); }
.skip-link:focus { transform: translate(-50%, 0); }

.site-header, main, footer { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.site-header + main > section:first-child { padding-top: var(--page-top-gap); }
.site-header {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: .9rem; font-weight: 720; text-decoration: none; letter-spacing: -.02em; }
.brand-logo { display: block; width: 104px; height: 32px; flex: none; background: url("logo_b-6605c067721c.png") center / contain no-repeat; }
html[data-theme="dark"] .brand-logo { background-image: url("logo_w-b80f960c0447.png"); }
.header-note { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; }
.site-header nav { display: flex; gap: 24px; justify-self: end; }
.site-header nav a { color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.header-controls { display: flex; gap: 7px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s; }
.icon-button:hover { transform: rotate(-7deg) scale(1.05); background: var(--panel); }
.menu-toggle { display: none; }
.menu-toggle svg path { transform-origin: center; transition: transform .18s ease, opacity .18s ease; }
.site-header[data-menu-open="true"] .menu-toggle svg path:first-child { transform: translateY(5px) rotate(45deg); }
.site-header[data-menu-open="true"] .menu-toggle svg path:nth-child(2) { opacity: 0; }
.site-header[data-menu-open="true"] .menu-toggle svg path:last-child { transform: translateY(-5px) rotate(-45deg); }
.language-button { font-family: var(--mono); font-size: .75rem; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon { display: none; }
html[data-theme="dark"] .sun { display: none; }
html[data-theme="dark"] .moon { display: block; }

.field { padding: 28px 0 72px; }
.field-titlebar { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(300px, .7fr); gap: clamp(36px, 8vw, 120px); align-items: end; padding: 0 4px 28px; }
.kicker, .panel-label { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .75rem; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }
.signal-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 1px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 15%, transparent); }
#field-title { margin: 10px 0 0; font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 680; }
.field-statement { position: relative; max-width: 460px; margin: 0 0 3px auto; padding-left: 24px; border-left: 2px solid var(--orange); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.7; letter-spacing: -.012em; }

.game-shell {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(500px, 1.7fr) minmax(210px, .62fr);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.briefing, .field-log { padding: 26px 24px; }
.briefing { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.panel-label { display: flex; align-items: center; gap: 8px; }
.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 15%, transparent); animation: blink 1.8s ease-in-out infinite; }
.briefing h2 { margin: 22px 0 16px; font-family: var(--display); font-size: clamp(1.3rem, 1.65vw, 1.65rem); line-height: 1.24; letter-spacing: -.025em; font-weight: 650; }
.briefing > div > p:last-child { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.controls-note { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.controls-note span { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.controls-note kbd { min-width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-family: var(--mono); font-size: .75rem; text-align: center; box-shadow: 0 2px 0 var(--line); }
.controls-note i { color: var(--muted); font-family: var(--mono); font-size: .75rem; font-style: normal; }

.viewport {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 36%),
    linear-gradient(var(--fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
  perspective: 900px;
  cursor: grab;
  touch-action: none;
  isolation: isolate;
}
.viewport:active { cursor: grabbing; }
.viewport::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(to bottom, var(--paper), transparent 18%, transparent 78%, var(--paper)); opacity: .42; }
.scene-ui { position: absolute; left: 20px; right: 20px; z-index: 12; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; }
.scene-ui-top { top: 18px; }
.scene-ui-top b { color: var(--orange); font-size: .85rem; }
.scene-ui-bottom { bottom: 16px; }
.scene-ui-bottom button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font-family: var(--mono); font-size: .75rem; cursor: pointer; pointer-events: auto; }
.scene-ui-bottom button:hover { border-color: var(--orange); color: var(--orange); }

.world {
  --rx: -14deg;
  --ry: -18deg;
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: 620px;
  height: 380px;
  margin: -190px 0 0 -310px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .08s linear;
}
.plane { position: absolute; left: 50%; top: 50%; border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent); background-image: linear-gradient(color-mix(in srgb, var(--blue) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--blue) 14%, transparent) 1px, transparent 1px); background-size: 44px 44px; transform-style: preserve-3d; }
.floor-plane { width: 620px; height: 620px; margin: -310px; transform: rotateX(90deg) translateZ(-190px); background-color: color-mix(in srgb, var(--blue) 5%, transparent); }
.back-plane { width: 620px; height: 380px; margin: -190px 0 0 -310px; transform: translateZ(-310px); }
.side-plane { width: 620px; height: 380px; margin: -190px 0 0 -310px; transform: rotateY(90deg) translateZ(-310px); }
.world-label { position: absolute; color: color-mix(in srgb, var(--blue) 45%, transparent); font-family: var(--mono); font-size: 2rem; font-weight: 720; letter-spacing: .07em; white-space: nowrap; }
.label-a { left: 42px; top: 42px; transform: translateZ(-170px); }
.label-b { right: 35px; bottom: 28px; transform: translateZ(-100px) rotate(-90deg); transform-origin: bottom right; }
.specimen { position: absolute; width: 96px; height: 70px; display: grid; place-items: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 76%, transparent); box-shadow: 10px 14px 0 color-mix(in srgb, var(--ink) 8%, transparent); transform-style: preserve-3d; }
.specimen span { color: var(--orange); font-family: var(--mono); font-size: 1.4rem; }
.specimen-a { left: 78px; top: 95px; transform: translateZ(100px) rotateZ(-9deg); }
.specimen-b { left: 330px; top: 55px; transform: translateZ(-10px) rotateZ(6deg); }
.specimen-c { left: 210px; top: 230px; transform: translateZ(150px) rotateZ(3deg); }
.specimen-d { left: 455px; top: 235px; transform: translateZ(-130px) rotateZ(-5deg); }
.block { position: absolute; width: 72px; height: 72px; border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); background: color-mix(in srgb, var(--yellow) 52%, transparent); box-shadow: inset -16px -12px 0 color-mix(in srgb, var(--ink) 7%, transparent); }
.block-a { left: 265px; top: 120px; transform: translateZ(52px) rotate(18deg); }
.block-b { left: 482px; top: 108px; width: 42px; height: 112px; transform: translateZ(100px) rotate(-6deg); background: color-mix(in srgb, var(--orange) 52%, transparent); }
.block-c { left: 80px; top: 255px; width: 130px; height: 30px; transform: translateZ(-45px); background: color-mix(in srgb, var(--green) 48%, transparent); }
.specimen, .block { transition: transform .65s cubic-bezier(.2,.8,.2,1), border-radius .4s, background-color .4s; }
.world.mode-orbit .block-a { border-radius: 50%; background: color-mix(in srgb, var(--purple) 68%, transparent); animation: node-orbit 5s linear infinite; }
.world.mode-fold .specimen-b { transform: translateZ(145px) rotateZ(-22deg) rotateY(28deg); }
.world.mode-fold .specimen-c { transform: translateZ(210px) rotateZ(18deg) rotateX(24deg); }
.world.mode-drift .block-b { transform: translate3d(-150px, 65px, 210px) rotate(24deg); background: color-mix(in srgb, var(--orange) 70%, transparent); }
.world.mode-pulse .block-c { border-radius: 999px; background: color-mix(in srgb, var(--green) 75%, transparent); animation: node-pulse 1.8s ease-in-out infinite; }
.world.complete { animation: complete-form 6s ease-in-out infinite; }

.clue { --size: 36px; position: absolute; left: 50%; top: 50%; z-index: 9; width: var(--size); height: var(--size); display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--mono); font-size: .75rem; font-weight: 700; transform: translate(-50%, -50%) scale(var(--depth-scale, 1)); cursor: pointer; box-shadow: 0 0 0 1px var(--paper), 0 0 0 8px color-mix(in srgb, var(--orange) 17%, transparent), 0 8px 24px color-mix(in srgb, var(--orange) 35%, transparent); transition: opacity .2s, background-color .2s, transform .12s; }
.clue::before, .clue::after { content: ""; position: absolute; inset: -13px; border: 1px solid var(--orange); border-radius: 50%; animation: ping 2s ease-out infinite; }
.clue::after { animation-delay: 1s; }
.clue:hover { transform: translate(-50%, -50%) scale(calc(var(--depth-scale, 1) * 1.14)); }
.clue.found { background: var(--green); color: #17200d; box-shadow: 0 0 0 1px var(--paper), 0 0 0 9px color-mix(in srgb, var(--green) 18%, transparent); }
.clue.found::before, .clue.found::after { display: none; }

.discovery-card { position: absolute; left: 20px; bottom: 56px; z-index: 10; width: min(390px, calc(100% - 40px)); min-height: 108px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 8px 9px 0 color-mix(in srgb, var(--blue) 13%, transparent); backdrop-filter: blur(10px); pointer-events: none; transform: translateY(12px); opacity: .88; transition: transform .25s, opacity .25s, border-color .25s; }
.discovery-card.revealed { transform: none; opacity: 1; border-color: var(--orange); }
.discovery-no { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .85rem; }
.discovery-card p { margin: 0; }
#discoveryType { color: var(--orange); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.discovery-card h3 { margin: 4px 0 3px; font-size: .95rem; letter-spacing: -.015em; }
#discoveryText { color: var(--muted); font-size: .8rem; line-height: 1.55; }

.field-log { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.log-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.log-head span { color: var(--orange); font-family: var(--mono); font-size: .8rem; }
.field-log ol { list-style: none; margin: 0; padding: 0; }
.field-log li { min-height: 80px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); }
.field-log li > span { font-family: var(--mono); font-size: .75rem; }
.field-log li p { margin: 0; font-size: .8rem; line-height: 1.45; }
.field-log li.found { color: var(--ink); }
.field-log li.found span { color: var(--orange); }
.completion { margin: auto 0 0; padding-top: 22px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.completion.complete { color: var(--ink); font-weight: 700; }

.manifesto { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(44px, 7vw, 112px); padding: 96px 0; border-top: 1px solid var(--line); }
.manifesto-title h2, .work-intro h2 { margin: 24px 0 0; font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.038em; font-weight: 650; }
.contact h3 { margin: 24px 0 0; font-family: var(--display); font-size: clamp(1.25rem, 1.65vw, 1.6rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.studio-copy { max-width: 480px; margin: 30px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.manifesto-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-self: end; }
.note { min-height: 310px; display: flex; flex-direction: column; padding: 22px; border: 1px solid rgba(23, 25, 20, .28); color: #171914; transition: transform .25s ease; }
.note + .note { margin-left: -1px; }
.note:hover { position: relative; z-index: 2; transform: translateY(-12px) rotate(-1deg); }
.note > span { font-family: var(--mono); font-size: .75rem; }
.note h3 { margin: auto 0 14px; font-family: var(--display); font-size: clamp(1.25rem, 1.65vw, 1.6rem); letter-spacing: -.03em; }
.note p { margin: 0; font-size: .9rem; line-height: 1.7; }
.note-yellow { background: var(--yellow); transform: rotate(-1.3deg); }
.note-blue { background: #85a7ff; transform: translateY(14px) rotate(1deg); }
.note-red { background: #ff856d; transform: rotate(-.5deg); }

.services { display: grid; grid-template-columns: minmax(300px, .72fr) 1.28fr; gap: clamp(48px, 8vw, 120px); padding: 96px 0; border-top: 1px solid var(--line); }
.services-head { align-self: start; position: sticky; top: 24px; }
.services-head h2 { max-width: 520px; margin: 24px 0 0; font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.038em; font-weight: 650; }
.services-head > p:last-of-type { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.services-head > a { width: fit-content; display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: .86rem; font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.services-head > a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.service-list { border-top: 1px solid var(--line); }
.service-list article { min-height: 138px; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); transition: padding .2s, background-color .2s; }
.service-list article:hover { padding-inline: 18px; background: var(--panel); }
.service-list article > span { align-self: start; color: var(--orange); font-family: var(--mono); font-size: .75rem; }
.service-list h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; }
.service-list p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.work { display: grid; grid-template-columns: minmax(280px, .58fr) 1.42fr; gap: clamp(44px, 7vw, 96px); padding: 96px 0; border-top: 1px solid var(--line); }
.work-intro { align-self: start; position: sticky; top: 24px; }
.work-intro h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.work-intro > p:last-child { max-width: 430px; margin: 30px 0 0; color: var(--muted); line-height: 1.75; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work-card { position: relative; min-height: 320px; overflow: hidden; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.work-card h3 { margin: auto 0 4px; font-family: var(--display); font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 660; }
.work-card > p { margin: 0 0 30px; color: var(--muted); }
.mini-visual { height: 90px; border-top: 1px solid var(--line); }
.bars { display: flex; align-items: end; gap: 7px; padding-top: 16px; }
.bars i { flex: 1; height: 30%; background: var(--orange); }
.bars i:nth-child(2) { height: 72%; }.bars i:nth-child(3) { height: 46%; }.bars i:nth-child(4) { height: 88%; }.bars i:nth-child(5) { height: 64%; }
.trace { position: relative; }
.trace::before { content: ""; position: absolute; inset: 18px 0; background: linear-gradient(150deg, transparent 0 20%, var(--orange) 20% 22%, transparent 22% 46%, var(--orange) 46% 48%, transparent 48% 63%, var(--orange) 63% 65%, transparent 65%); }
.trace i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }.trace i:nth-child(1){left:19%;top:57px}.trace i:nth-child(2){left:47%;top:31px}.trace i:nth-child(3){right:22%;top:50px}
.circles { position: relative; }
.circles i { position: absolute; bottom: 0; border: 1px solid var(--blue); border-radius: 50%; }.circles i:nth-child(1){width:76px;height:76px;left:0;background:color-mix(in srgb,var(--blue) 26%,transparent)}.circles i:nth-child(2){width:58px;height:58px;left:52px;background:color-mix(in srgb,var(--yellow) 45%,transparent)}.circles i:nth-child(3){width:38px;height:38px;left:99px;background:color-mix(in srgb,var(--orange) 38%,transparent)}
.type-lines { display: grid; gap: 8px; padding-top: 16px; }.type-lines i{height:7px;background:var(--ink);opacity:.65}.type-lines i:nth-child(2){width:76%}.type-lines i:nth-child(3){width:91%}.type-lines i:nth-child(4){width:55%}
.sayfi { border-top: 5px solid var(--orange); }.stock { border-top: 5px solid var(--yellow); }.ihave { border-top: 5px solid var(--blue); }.brief { border-top: 5px solid var(--purple); }

.contact { min-height: 300px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.contact h3 { max-width: 850px; }
.contact > a { padding-bottom: 8px; color: var(--orange); font-family: var(--mono); font-size: clamp(1.1rem, 2.1vw, 2rem); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 8px; white-space: nowrap; }
.contact > a span { display: inline-block; transition: transform .2s; }.contact > a:hover span{transform:translate(4px,-4px)}
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; }
.footer-contact { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.footer-contact:hover { color: var(--orange); }
.footer-contact span:last-child { font-size: 1rem; transition: transform .18s ease; }
.footer-contact:hover span:last-child { transform: translate(2px, -2px); }
.footer-identity { display: inline-flex; align-items: baseline; gap: 14px; }
.footer-home { color: inherit; text-decoration: none; transition: color .18s ease; }
.footer-home:hover { color: var(--orange); }
.footer-separator { color: var(--muted); }
.page-views { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.page-views strong, .counter-credit { font: inherit; }
.page-views strong { color: var(--ink); font-weight: 650; }
.counter-credit { color: var(--muted); }
.counter-credit a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@keyframes blink { 50% { opacity: .35; } }
@keyframes ping { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes node-orbit { to { transform: translateZ(52px) rotate(378deg); } }
@keyframes node-pulse { 50% { transform: translateZ(40px) scaleX(1.22); } }
@keyframes complete-form { 0%,100% { filter: saturate(1); } 50% { filter: saturate(1.45) brightness(1.06); } }

@media (max-width: 1100px) {
  .game-shell { grid-template-columns: 220px 1fr; }
  .field-log { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr 220px; align-items: stretch; padding: 0; border-top: 1px solid var(--line); border-left: 0; }
  .log-head { padding: 20px; border-right: 1px solid var(--line); border-bottom: 0; }
  .field-log ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .field-log li { padding: 12px; border-right: 1px solid var(--line); border-bottom: 0; }
  .completion { margin: 0; padding: 20px; }
  .manifesto, .services { grid-template-columns: 1fr; }
  .services-head { position: static; }
}

@media (max-width: 780px) {
  .site-header, main, footer { width: min(100% - 24px, 1440px); }
  .site-header { height: auto; min-height: 72px; position: relative; z-index: 20; grid-template-columns: 1fr auto; grid-template-rows: 1fr; grid-template-areas: "brand controls"; align-content: center; gap: 8px 12px; padding-block: 10px; }
  .site-header[data-menu-open="true"] { grid-template-rows: auto auto; grid-template-areas: "brand controls" "nav nav"; align-content: start; }
  .brand { grid-area: brand; }
  .header-controls { grid-area: controls; }
  .header-controls { gap: 4px; }
  .menu-toggle { display: grid; }
  .site-header nav { display: none; grid-area: nav; justify-self: stretch; width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--panel); box-shadow: var(--shadow); }
  .site-header[data-menu-open="true"] nav { display: flex; flex-direction: column; gap: 0; }
  .site-header nav a { padding: 10px 8px; text-align: left; }
  .site-header nav a + a { border-top: 1px solid var(--fine); }
  .brand { gap: 8px; }
  .brand-logo { width: 98px; height: 30px; }
  .header-note { display: none; }
  .field { padding-top: 18px; }
  .field-titlebar { grid-template-columns: 1fr; gap: 22px; }
  #field-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .field-statement { margin: 0; }
  .game-shell { display: block; }
  .briefing { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .controls-note { grid-template-columns: repeat(3, 1fr); }
  .controls-note span { display: grid; justify-items: start; }
  .viewport { min-height: 590px; }
  .field-log { display: block; }
  .log-head { border-right: 0; border-bottom: 1px solid var(--line); }
  .field-log ol { grid-template-columns: 1fr 1fr; }
  .field-log li { border-bottom: 1px solid var(--line); }
  .completion { min-height: 100px; }
  .manifesto, .services, .work { grid-template-columns: 1fr; padding: 82px 0; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .note { min-height: 240px; }
  .note + .note { margin: -1px 0 0; }
  .note-blue { transform: translateX(6px) rotate(1deg); }
  .work-intro { position: static; }
  .contact { min-height: 380px; grid-template-columns: 1fr; align-content: end; }
}

@media (max-width: 340px) {
  .site-header { column-gap: 8px; }
  .brand { gap: 4px; }
}

@media (max-width: 520px) {
  .brand-logo { width: 92px; height: 28px; }
  .icon-button { width: 34px; height: 34px; }
  .field-titlebar { padding-bottom: 18px; }
  .briefing { min-height: 300px; }
  .controls-note { grid-template-columns: 1fr; }
  .controls-note span { display: flex; }
  .viewport { min-height: 540px; }
  .coordinates { display: none; }
  .discovery-card { bottom: 60px; grid-template-columns: 42px 1fr; }
  .discovery-no { width: 42px; height: 42px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 310px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
