/* Saltway Digital — public site */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/Inter-Regular.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/fonts/Inter-Medium.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/Inter-SemiBold.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/InterDisplay-SemiBold.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/InterDisplay-Bold.woff) format("woff"); }

:root {
  --ink: #0b1d27;
  --ink-2: #3f5763;
  --ink-3: #6c8290;
  --deep: #0d4d66;
  --teal: #157489;
  --aqua: #46aebb;
  --aqua-2: #7fd0d8;
  --mist: #e4f4f6;
  --bg: #f5f9fa;
  --paper: #ffffff;
  --line: #e1eaed;
  --line-2: #cfdde2;
  --coral: #e06a52;
  --grad: linear-gradient(135deg, #0d4d66 0%, #157489 45%, #46aebb 100%);
  --grad-soft: linear-gradient(135deg, #e7f5f7, #f4fafb);
  --r: 20px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 39, .05), 0 2px 8px -2px rgba(11, 29, 39, .06);
  --shadow: 0 1px 2px rgba(11, 29, 39, .04), 0 12px 32px -14px rgba(13, 77, 102, .25);
  --shadow-lg: 0 2px 6px rgba(11, 29, 39, .05), 0 30px 60px -24px rgba(13, 77, 102, .38);
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='white' stroke-opacity='.14' stroke-width='2'%3E%3Cpath d='M0 40h40l20 20h40l20-20h40M40 160v-40l20-20M120 0v30l-20 20M100 160v-30h40'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3Ccircle cx='120' cy='40' r='4'/%3E%3Ccircle cx='60' cy='100' r='4'/%3E%3Ccircle cx='100' cy='50' r='4'/%3E%3Ccircle cx='140' cy='130' r='4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.028em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
::selection { background: var(--aqua-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  background: var(--mist); padding: 6px 12px 6px 10px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(70, 174, 187, .25); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 58ch; line-height: 1.6; }
.meta { font-size: .84rem; color: var(--ink-3); margin-bottom: 6px; font-weight: 500; }
.empty { color: var(--ink-3); padding: 40px 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--grad); background-size: 140% 140%; background-position: 0 0;
  color: #fff; text-decoration: none; font: 600 1rem/1.2 var(--sans);
  padding: .78em 1.3em; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -12px rgba(13, 77, 102, .9);
  transition: background-position .4s, transform .15s, box-shadow .2s;
}
.btn:hover { color: #fff; background-position: 100% 100%; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -14px rgba(13, 77, 102, .95); }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; }
.btn-lg { padding: .9em 1.55em; font-size: 1.04rem; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--teal) inset, var(--shadow-sm); }
.btn-light { background: #fff; color: var(--deep); box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }
.btn-light:hover { background: var(--mist); color: var(--deep); }
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--teal); }
.link .i { transition: transform .2s; }
.link:hover .i, a:hover .link .i { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 249, 250, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(207, 221, 226, .55); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 1.22rem var(--display); letter-spacing: -.02em; }
.brand img { height: 44px; width: auto; }
.brand:hover { color: var(--ink); }
.brand b { font-weight: 700; color: var(--aqua); }
.nav { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.7); padding: 5px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line) inset; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 16px; border-radius: 999px; font-size: .95rem; transition: color .15s, background .15s; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current] { color: var(--deep); background: var(--mist); font-weight: 600; }
.nav .btn { margin-left: 4px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 14px; display: grid; place-content: center; gap: 5px; background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 58px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 10px; display: grid; min-width: 230px; }
.menu-panel a:not(.btn) { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 12px; font-weight: 500; }
.menu-panel a:not(.btn):hover { background: var(--bg); }
.menu-panel .btn { margin-top: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 112px); isolation: isolate; }
.hero::before { /* faint grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); opacity: .7;
}
.hero::after { /* colour blobs */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 700px; right: -260px; top: -260px;
  background: radial-gradient(closest-side, rgba(70, 174, 187, .30), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(21, 116, 137, .18), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-bottom: 32px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 30px 0 0; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { color: var(--aqua); width: 18px; height: 18px; stroke-width: 2.4; }

.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.hero-visual .halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(70,174,187,.35), rgba(70,174,187,0) 65%); }
.hero-visual .ring { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(21, 116, 137, .25); animation: spin 60s linear infinite; }
.hero-visual .ring::before, .hero-visual .ring::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(70,174,187,.18); }
.hero-visual .ring::before { top: 12%; left: 12%; }
.hero-visual .ring::after { bottom: 6%; right: 26%; background: var(--deep); box-shadow: 0 0 0 5px rgba(13,77,102,.14); }
@keyframes spin { to { transform: rotate(360deg); } }
.browser {
  position: relative; width: min(470px, 100%); background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(13,77,102,.08), var(--shadow-lg); transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transition: transform .6s;
}
.hero-visual:hover .browser { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #f1f6f7; border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d4e1e5; }
.browser-bar > span:nth-child(1) { background: #f19a86; }
.browser-bar > span:nth-child(2) { background: #f3cf72; }
.browser-bar > span:nth-child(3) { background: #8fd3a6; }
.url { margin-left: 10px; flex: 1; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: .78rem; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line) inset; }
.url .i { width: 13px; height: 13px; color: #2d9a62; stroke-width: 2.2; }
.browser-body { padding: 18px 20px 22px; display: grid; gap: 16px; }
.sk { display: block; border-radius: 6px; background: #e9f0f2; height: 10px; }
.sk-nav { display: flex; gap: 10px; align-items: center; }
.sk-nav img { width: 26px; height: auto; }
.sk-nav .sk { width: 42px; height: 8px; }
.sk-nav .sk:first-of-type { margin-left: auto; }
.sk-nav .sk.pill { width: 62px; height: 20px; border-radius: 99px; background: var(--grad); }
.sk-hero { border-radius: 14px; padding: 22px; background: var(--grad); background-image: var(--circuit), var(--grad); display: grid; gap: 10px; }
.sk-hero .sk { background: rgba(255,255,255,.85); height: 14px; }
.sk-hero .sk.w2 { width: 62%; }
.sk-hero .sk.w3 { width: 80%; height: 8px; background: rgba(255,255,255,.5); }
.sk-hero .sk.w4 { width: 34%; height: 22px; border-radius: 99px; background: #fff; margin-top: 6px; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-cards div { border-radius: 12px; padding: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: 7px; }
.sk-cards i { display: block; width: 22px; height: 22px; border-radius: 7px; background: var(--mist); }
.sk-cards .sk { height: 7px; }
.sk-cards .sk + .sk { width: 70%; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 14px; font-size: .88rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(13,77,102,.08), var(--shadow); animation: float 6s ease-in-out infinite;
}
.chip span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; }
.chip span .i { width: 16px; height: 16px; stroke-width: 2; }
.chip-a { top: 1%; left: -4%; }
.chip-b { bottom: 14%; left: -6%; animation-delay: -2s; }
.chip-c { top: 30%; right: -4%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* sections */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-tight { padding-top: 16px; }
.section-white { background: var(--paper); }
.section-sand, .section-tint { background: var(--paper); }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.1rem; margin: 14px 0 0; }
.more { margin: 32px 0 0; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--paper); border-radius: var(--r); padding: 30px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line) inset; transition: transform .25s, box-shadow .25s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.section-white .card { background: var(--bg); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--grad); color: #fff; flex: none; box-shadow: 0 10px 20px -10px rgba(13,77,102,.8); }
.card-icon .i { width: 25px; height: 25px; stroke-width: 1.8; }
.card-icon-lg { width: 64px; height: 64px; border-radius: 18px; }
.card-icon-lg .i { width: 30px; height: 30px; }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.work-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line) inset; transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.work-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; margin: 10px 10px 0; border-radius: 14px; background: var(--deep); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work-card:hover .work-media img, .work-card:hover .work-mono { transform: scale(1.04); }
.work-mono {
  position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s;
  font: 700 clamp(3rem, 7vw, 5.2rem) var(--display); letter-spacing: -.04em; color: rgba(255, 255, 255, .95);
  background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.22), transparent 42%), var(--circuit), linear-gradient(135deg, #0d4d66, #2a93a5);
  text-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.work-card:nth-child(4n+2) .work-mono { background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.22), transparent 42%), var(--circuit), linear-gradient(135deg, #2a93a5, #7fd0d8); }
.work-card:nth-child(4n+3) .work-mono { background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.18), transparent 42%), var(--circuit), linear-gradient(135deg, #0b1d27, #155a73); }
.work-card:nth-child(4n+4) .work-mono { background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.2), transparent 42%), var(--circuit), linear-gradient(135deg, #157489, #3fa58f); }
.work-body { padding: 22px 26px 28px; }
.work-body h3 { margin-bottom: 8px; }
.work-body p:last-child { color: var(--ink-2); margin: 0; font-size: .98rem; }
.work-body .meta { display: inline-block; background: var(--mist); color: var(--teal); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; margin-bottom: 12px; }
.work-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about > div > p { color: var(--ink-2); font-size: 1.06rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--aqua), var(--deep)); opacity: .35; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 20px 22px 20px 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2; align-self: start;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem var(--display); color: #fff; background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 10px 20px -8px rgba(13,77,102,.7);
}
.steps strong { font: 600 1.2rem var(--display); letter-spacing: -.01em; padding-top: 4px; }
.steps span { color: var(--ink-2); font-size: .98rem; }
.section-white .steps li::before { box-shadow: 0 0 0 6px #fff, 0 10px 20px -8px rgba(13,77,102,.7); }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); padding: 26px; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line) inset; transition: transform .25s, box-shadow .25s; }
.section-white .post-card { background: var(--bg); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-card img { border-radius: 14px; margin: -12px -12px 20px; width: calc(100% + 24px); max-width: none; aspect-ratio: 16/9; object-fit: cover; }
.post-card h3 { margin-bottom: 10px; }
.post-card p:not(.meta) { color: var(--ink-2); font-size: .97rem; }
.post-card .link { margin-top: auto; padding-top: 8px; }

/* CTA */
.cta { padding: 0 0 clamp(64px, 8vw, 112px); }
.section + .cta, .section-white + .cta { padding-top: clamp(64px, 8vw, 112px); }
.cta-in {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: var(--grad); border-radius: 28px; padding: clamp(36px, 6vw, 72px); color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--circuit); background-size: 220px; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.cta-in::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .86); font-size: 1.12rem; max-width: 50ch; margin: 0; }
.cta .actions { justify-content: flex-end; }
.cta-mail { color: #fff; font-weight: 600; }
.cta-mail:hover { color: var(--mist); }

/* page heads */
.page-head { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 52px); isolation: isolate; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 10%, transparent 70%);
}
.page-head::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 480px; right: -200px; top: -240px; background: radial-gradient(closest-side, rgba(70,174,187,.25), transparent 70%); }
.page-head-post { padding-bottom: 28px; }
.crumbs { font-size: .9rem; color: var(--ink-3); font-weight: 500; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.facts > div { background: var(--paper); border-radius: 14px; padding: 12px 18px; box-shadow: 0 0 0 1px var(--line) inset; }
.facts dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.project-media { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; position: relative; background: var(--deep); margin-bottom: clamp(40px, 5vw, 64px); box-shadow: var(--shadow-lg); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.work-mono-lg { font-size: clamp(4rem, 12vw, 8.5rem); }

/* services page */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 24px; background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3.5vw, 36px); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .25s, transform .25s; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc h2 { font-size: 1.45rem; margin-bottom: 8px; letter-spacing: -.02em; }
.svc-sum { font-size: 1.04rem; color: var(--ink); font-weight: 500; }
.svc .prose { color: var(--ink-2); font-size: 1rem; }

/* prose */
.prose { font-size: 1.07rem; line-height: 1.75; }
.prose-narrow { max-width: 720px; margin-inline: auto; padding-bottom: clamp(48px, 7vw, 96px); }
.prose h2 { font-size: 1.7rem; margin: 1.7em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--aqua); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--aqua); background: var(--paper); border-radius: 0 14px 14px 0; font: 500 1.2rem/1.5 var(--display); color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: 16px; margin: 1.6em 0; }
.prose code { background: var(--mist); padding: .12em .4em; border-radius: 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-hero { border-radius: 22px; margin: 0 0 40px; width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.post-back { margin: 44px 0 clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); }
.badge { display: inline-block; font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--deep); }
.badge-warn { background: #fdefd6; color: #8a5300; }
.spacer { height: clamp(48px, 7vw, 96px); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.form { background: var(--paper); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: .93rem; }
.field em { font-weight: 400; color: var(--ink-3); font-style: normal; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--sans); color: var(--ink); width: 100%;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); background: #fff; box-shadow: 0 0 0 4px rgba(70, 174, 187, .18); }
.has-err input, .has-err textarea { border-color: var(--coral); }
.err { color: #b4402a; font-weight: 500; }
.alert { background: #fdeae5; color: #8c2c18; padding: 12px 16px; border-radius: 12px; margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.fine { font-size: .87rem; color: var(--ink-3); margin: 0; }
.sent { background: var(--paper); border-radius: 24px; padding: clamp(28px, 5vw, 52px); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.sent-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; margin-bottom: 22px; box-shadow: 0 12px 24px -10px rgba(13,77,102,.8); }
.sent-icon .i { width: 30px; height: 30px; stroke-width: 2.4; }
.contact-side { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: center; background: var(--paper); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line) inset; }
.contact-item .card-icon { width: 46px; height: 46px; border-radius: 13px; }
.contact-item .card-icon .i { width: 22px; height: 22px; }
.contact-item p { margin: 0; }
.contact-item .meta { margin: 0; }
.contact-item a { font-weight: 600; word-break: break-word; text-decoration: none; }
.contact-note { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 20px; padding: 26px 28px; }
.contact-note::before { content: ""; position: absolute; inset: 0; background: var(--circuit); opacity: .7; }
.contact-note > * { position: relative; }
.contact-note h2 { font-size: 1.3rem; color: #fff; }
.contact-note ol { margin: 0; padding-left: 1.2em; color: rgba(255,255,255,.88); }
.contact-note li { margin-bottom: .5em; }

/* footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 28px; font-size: .96rem; position: relative; overflow: hidden; isolation: isolate; }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--circuit); background-size: 200px; opacity: .35; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.foot a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.brand-light, .brand-light:hover { color: #fff !important; }
.brand-light img { background: #fff; border-radius: 14px; padding: 5px; height: 52px; }
.foot-brand p { margin-top: 18px; max-width: 34ch; }
.foot-h { font: 600 .76rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.social { display: flex; gap: 16px; margin-top: 16px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: rgba(255, 255, 255, .45); }
.foot-base a { color: rgba(255, 255, 255, .6); }

.notfound { min-height: 55vh; }

/* coming soon */
.soon { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(circle at 70% 20%, rgba(70,174,187,.25), transparent 50%), var(--bg); }
.soon img { margin: 0 auto 24px; width: 120px; }

/* reveal on scroll (enhancement only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 560px; margin: 8px auto 0; width: 100%; }
  .cards, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .cta-in, .contact-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-visual { min-height: 330px; }
  .chip { font-size: .8rem; padding: 8px 11px 8px 8px; }
  .chip span { width: 26px; height: 26px; }
  .chip-a { left: 0; top: 0; }
  .chip-b { left: 0; bottom: 4%; }
  .chip-c { right: 0; top: auto; bottom: 26%; }
  .browser { transform: none; }
  .cards, .post-grid, .work-grid, .work-grid-2, .row2 { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .top-in { height: 66px; }
  .brand img { height: 38px; }
  body { font-size: 16px; }
  .project-media { aspect-ratio: 16 / 9; border-radius: 18px; }
  .cta-in { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
