/* ==========================================================================
   Back Bay Web Design — site stylesheet
   Token layers: primitives (--bb-*) -> semantic (--color-*) -> components.
   ========================================================================== */

:root {
  /* Primitives */
  --bb-night: #06141f;
  --bb-night-2: #040e16;
  --bb-deep: #0b2237;
  --bb-deep-2: #12304b;
  --bb-ink: #0a1b2b;
  --bb-mint: #4fb88c;
  --bb-mint-dark: #1f6b4f;
  --bb-glass: #e7f0ec;
  --bb-foam: #f7fbf9;
  --bb-white: #ffffff;
  --bb-slate: #44566a;
  --bb-mist: #a9bdcb;
  --bb-line: #c5d5ce;
  --bb-error: #b3261e;

  /* Semantic */
  --color-text: var(--bb-ink);
  --color-text-muted: var(--bb-slate);
  --color-on-dark: var(--bb-foam);
  --color-on-dark-muted: var(--bb-mist);
  --color-accent: var(--bb-mint);
  --color-accent-ink: var(--bb-mint-dark);
  --ring: var(--bb-mint-dark);

  /* Legacy aliases (legal pages use these inline) */
  --ink-700: #1c3044;
  --blue-500: var(--bb-mint-dark);
  --navy-900: var(--bb-night);
  --navy-700: var(--bb-deep-2);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 14px;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--bb-foam);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.on-dark { --ring: var(--bb-mint); }
.on-mint { --ring: var(--bb-night); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--bb-night); color: var(--bb-foam);
  padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; --ring: var(--bb-mint); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Type --------------------------------------------------------------- */
.display, h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.prose { max-width: 62ch; }
.muted { color: var(--color-text-muted); }

/* ---- Buttons & links --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bb-mint); color: var(--bb-night); }
.btn-primary:hover { background: #7fd1ad; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--bb-foam); box-shadow: inset 0 0 0 2px rgba(247, 251, 249, .55); }
.btn-ghost:hover { background: rgba(247, 251, 249, .12); box-shadow: inset 0 0 0 2px var(--bb-foam); }

.text-link {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px; transition: background-size .25s var(--ease), color .18s;
}
.text-link:hover { background-size: 0% 2px; background-position: 100% 100%; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bb-night); color: var(--bb-foam);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  --ring: var(--bb-mint);
}
.site-header.scrolled { border-bottom-color: rgba(255, 255, 255, .1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; gap: clamp(20px, 3vw, 40px); margin-left: auto; }
.main-nav a {
  position: relative; padding: 8px 2px; text-decoration: none; font-weight: 600; font-size: .98rem;
  color: var(--bb-mist); transition: color .18s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--bb-mint); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--bb-foam); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 46px; padding: 0 20px; }
.btn .short { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 13px; width: 20px; height: 2px; background: var(--bb-foam); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bb-night); color: var(--bb-foam);
  padding: 24px var(--gutter) 40px; display: none; flex-direction: column; gap: 4px;
  overflow-y: auto; --ring: var(--bb-mint);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a:not(.btn) {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mobile-drawer a.active { color: var(--bb-mint); }
.mobile-drawer .btn { margin-top: 24px; }

/* ---- Wave (waterline) ----------------------------------------------------- */
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 72px; pointer-events: none;
  background: var(--wave, var(--bb-night));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 44 Q150 4 300 44 T600 44 T900 44 T1200 44 V80 H0Z'/%3E%3C/svg%3E") repeat-x 0 100% / 1200px 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 44 Q150 4 300 44 T600 44 T900 44 T1200 44 V80 H0Z'/%3E%3C/svg%3E") repeat-x 0 100% / 1200px 100%;
  animation: tide 28s linear infinite;
}
@keyframes tide { to { -webkit-mask-position: -1200px 100%; mask-position: -1200px 100%; } }

/* ---- Shared hero helpers --------------------------------------------------- */
.hero-lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }

/* ---- Home hero: dusk photo + live browser mockup --------------------------- */
.hero-showcase {
  position: relative; isolation: isolate; z-index: 2;
  background: var(--bb-night); color: var(--bb-foam); --ring: var(--bb-mint);
  padding: clamp(56px, 7vw, 104px) 0 clamp(120px, 12vw, 176px);
}
.hero-showcase .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-showcase::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(98deg, rgba(6, 20, 31, .97) 0%, rgba(6, 20, 31, .86) 40%, rgba(6, 20, 31, .38) 100%);
}
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.showcase-title { font-size: clamp(2.5rem, 5.3vw, 5rem); line-height: .97; letter-spacing: -0.045em; font-weight: 900; }
.showcase-title .sub { display: block; margin-top: .5em; font-size: .52em; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; color: #d3e1e8; }
.hero-showcase .hero-lede { margin-top: 26px; max-width: 48ch; color: #d3e1e8; font-size: clamp(1.05rem, 1.3vw, 1.18rem); }
.hero-showcase .text-link { color: var(--bb-foam); }

.mock { position: relative; perspective: 1800px; padding: 0 0 36px; }
.mock-window {
  background: var(--bb-foam); color: var(--bb-ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 90px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14);
  transform: rotateY(-8deg) rotateX(3deg) rotate(.8deg); transform-origin: 70% 50%;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #dbe7e2; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #aebfb8; }
.mock-url { margin-left: 10px; flex: 1; max-width: 62%; background: var(--bb-white); border-radius: 999px; padding: 5px 14px; font-size: .78rem; font-weight: 600; color: var(--bb-slate); }
.mock-page { padding: 18px 20px 22px; display: grid; gap: 16px; }
.mock-nav { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.mock-logo { width: 26px; height: 26px; border-radius: 50%; background: var(--bb-night); flex: none; }
.mock-links { margin-left: auto; display: flex; gap: 10px; }
.mock-links i { width: 34px; height: 7px; border-radius: 4px; background: #c4d4cd; }
.mock-cta { width: 58px; height: 24px; border-radius: 999px; background: var(--bb-mint); }
.mock-hero { background: var(--bb-night); color: var(--bb-foam); border-radius: 14px; padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 12px; justify-items: start; }
.mock-hero strong { font-size: clamp(1.15rem, 2.1vw, 1.85rem); letter-spacing: -0.035em; line-height: 1.04; font-weight: 900; max-width: 14em; }
.mock-line { display: block; height: 8px; width: 78%; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.mock-line.short { width: 52%; }
.mock-btn { margin-top: 6px; background: var(--bb-mint); color: var(--bb-night); font-weight: 800; font-size: .8rem; padding: 9px 18px; border-radius: 999px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards div { background: var(--bb-white); border: 1px solid #d3e0da; border-radius: 12px; padding: 12px; display: grid; gap: 7px; }
.mock-cards i { width: 22px; height: 22px; border-radius: 7px; background: var(--bb-mint); }
.mock-cards span { height: 7px; border-radius: 4px; background: #d3e0da; }
.mock-cards span + span { width: 62%; }

.mock-phone {
  position: absolute; right: -2%; bottom: 0; width: clamp(96px, 15%, 150px); aspect-ratio: 9 / 18.5;
  background: var(--bb-foam); border: 5px solid var(--bb-night); border-radius: 24px; padding: 14px 8px 8px;
  display: grid; align-content: start; gap: 8px; overflow: hidden;
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .16);
  transform: rotate(4deg);
}
.mock-notch { position: absolute; top: 5px; left: 50%; width: 30%; height: 5px; border-radius: 3px; background: var(--bb-night); transform: translateX(-50%); }
.mock-phone-hero { background: var(--bb-night); border-radius: 10px; padding: 10px 8px; display: grid; gap: 6px; margin-top: 6px; }
.mock-phone-hero span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .8); }
.mock-phone-hero span.short { width: 60%; }
.mock-phone-hero b { height: 14px; width: 54%; border-radius: 999px; background: var(--bb-mint); margin-top: 4px; }
.mock-phone-card { height: 38px; border-radius: 9px; background: var(--bb-white); border: 1px solid #d3e0da; }

@media (prefers-reduced-motion: no-preference) {
  .showcase-copy { animation: fade-up .8s var(--ease) both; }
  .mock-window { animation: mock-in 1.1s .15s var(--ease) both, bob 9s 1.3s ease-in-out infinite alternate; }
  .mock-phone { animation: phone-in 1s .5s var(--ease) both, bob-phone 8s 1.5s ease-in-out infinite alternate; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mock-in { from { opacity: 0; transform: translateX(60px) rotateY(-18deg) rotateX(3deg) rotate(.8deg); } to { opacity: 1; transform: rotateY(-8deg) rotateX(3deg) rotate(.8deg); } }
@keyframes bob { to { transform: rotateY(-8deg) rotateX(3deg) rotate(.8deg) translateY(-10px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: rotate(4deg); } }
@keyframes bob-phone { to { transform: rotate(4deg) translateY(-14px); } }

/* ---- Sections ------------------------------------------------------------------ */
.section { padding: clamp(72px, 9vw, 136px) 0; position: relative; }
.section.glass { background: var(--bb-glass); }
.section.night { background: var(--bb-night); color: var(--bb-foam); --ring: var(--bb-mint); }
.section.deep { background: var(--bb-deep); color: var(--bb-foam); --ring: var(--bb-mint); }
.section-head { max-width: 40rem; }
.section-head h2 + p { margin-top: 18px; }
.section.night .muted, .section.deep .muted { color: var(--bb-mist); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-grid h2 { margin-bottom: 24px; }
.intro-grid .text-link { display: inline-block; margin-top: 28px; color: var(--bb-mint-dark); }
.promises { border-top: 2px solid var(--bb-ink); }
.promises li { padding: 22px 0; border-bottom: 1px solid var(--bb-line); font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }

/* Services bento */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; margin-top: clamp(36px, 5vw, 64px); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  padding: clamp(24px, 2.6vw, 36px); min-height: 280px;
  background: var(--bb-deep); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-xl);
  transition: border-color .2s, transform .35s var(--ease);
}
.tile:hover { border-color: var(--bb-mint); transform: translateY(-4px); }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.tile p { color: var(--bb-mist); max-width: 34ch; }
.tile .text-link { margin-top: auto; align-self: flex-start; color: var(--bb-mint); }
.tile-icon { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.tile-lead { grid-row: span 2; background: linear-gradient(160deg, var(--bb-deep-2), var(--bb-deep)); }
.tile-lead .tile-shot { margin: auto -12px -12px; width: calc(100% + 24px); max-width: none; border-radius: var(--r-lg); }
.tile-wide { grid-column: 2 / 4; flex-direction: row; align-items: flex-end; gap: 28px; }
.tile-wide > div { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tile-wide::after { content: ''; position: absolute; right: clamp(20px, 4vw, 64px); top: 50%; width: clamp(120px, 15vw, 220px); aspect-ratio: 1; transform: translateY(-50%); background: url('../images/web-design/icon-ship-wheel.png') center / contain no-repeat; opacity: .28; pointer-events: none; }
.tile-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: url('../images/web-design/seo-analytics.jpg') center / cover;
}
.tile-photo::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, var(--bb-deep) 20%, rgba(11, 34, 55, .55)); }
.tile-photo > * { position: relative; z-index: 1; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); counter-reset: step; }
.steps li { position: relative; padding: 0 22px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bb-night); color: var(--bb-mint); font-weight: 800; position: relative; z-index: 1;
}
.steps li::after { content: ''; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--bb-line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 20px 0 8px; font-size: 1.2rem; }
.steps p { color: var(--color-text-muted); font-size: .98rem; line-height: 1.55; }

/* Trust section */
.trust-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.trust h2 { max-width: 14em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--bb-ink); }
.facts li { padding: 22px 20px 20px 0; border-bottom: 1px solid var(--bb-line); }
.facts li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--bb-line); }
.facts strong { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.facts span { display: block; margin-top: 8px; color: var(--color-text-muted); font-size: .98rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { border: 1.5px solid rgba(10, 27, 43, .4); border-radius: 999px; padding: 9px 18px; font-size: .95rem; font-weight: 600; }
.proof .pill, .section.night .pill, .section.deep .pill { border-color: rgba(255, 255, 255, .4); }
.trust-photo { border-radius: var(--r-xl); overflow: hidden; background: var(--bb-deep); }
.trust-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }

/* Closing call-to-action */
.cta-final { position: relative; isolation: isolate; background: var(--bb-night); color: var(--bb-foam); text-align: left; --ring: var(--bb-mint); }
.cta-final::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../images/nautical/marina-dusk.jpg') center / cover; }
.cta-final::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 20, 31, .93), rgba(6, 20, 31, .62)); }
.cta-final h2 { font-size: clamp(2.2rem, 6vw, 5rem); max-width: 14em; }
.cta-final p { margin-top: 20px; max-width: 46ch; color: var(--bb-mist); }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 30px; }

/* ---- Inner page hero (dusk photo, matches the home hero) ----------------------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--bb-foam); background: var(--bb-night);
  padding: clamp(48px, 6vw, 88px) 0 clamp(104px, 10vw, 148px); --ring: var(--bb-mint);
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--ph-img) center 60% / cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 20, 31, .97) 0%, rgba(6, 20, 31, .9) 46%, rgba(6, 20, 31, .5) 100%); }
.ph-ocean { --ph-img: url('../images/nautical/ocean-horizon.jpg'); }
.ph-lighthouse { --ph-img: url('../images/nautical/lighthouse-dusk.jpg'); }
.ph-marina { --ph-img: url('../images/nautical/marina-dusk.jpg'); }
.page-hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.5rem); line-height: .97; letter-spacing: -0.045em; font-weight: 900; max-width: 15em; }
.page-hero h1 + p { margin-top: 22px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 50ch; color: #d3e1e8; }
.page-hero .hero-ctas { margin-top: 28px; }
.page-hero .text-link { color: var(--bb-foam); }
.page-hero.compact .container { grid-template-columns: 1fr; }
.page-hero.compact h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.page-hero-visual { border-radius: var(--r-xl); overflow: hidden; background: var(--bb-deep); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(247, 251, 249, .16); }
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.hero-index { display: grid; background: rgba(11, 34, 55, .78); border: 1px solid rgba(247, 251, 249, .2); border-radius: var(--r-xl); overflow: hidden; }
.hero-index a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 20px 60px 20px 26px; text-decoration: none; border-top: 1px solid rgba(247, 251, 249, .14); transition: background-color .2s; }
.hero-index a:first-child { border-top: 0; }
.hero-index a::after { content: ''; position: absolute; right: 28px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--bb-mint); border-bottom: 2.5px solid var(--bb-mint); transform: translateY(-70%) rotate(45deg); }
.hero-index a:hover { background: rgba(79, 184, 140, .16); }
.hero-index span { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.hero-index small { color: var(--bb-mist); font-size: .94rem; }

/* ---- Services page ------------------------------------------------------------------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--bb-line); }
.service:last-child { border-bottom: 0; }
.service:nth-of-type(even) .service-copy { order: 2; }
.service-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin: 20px 0 16px; }
.service-icon { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.service figure { border-radius: var(--r-xl); overflow: hidden; background: var(--bb-deep); }
.service figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 26px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 600; line-height: 1.35; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bb-mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306141f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 56px; margin-top: clamp(32px, 4vw, 56px); }
.tools img { height: 32px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.tools img:hover { filter: none; opacity: 1; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- About page ------------------------------------------------------------------------ */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story h2 { margin-bottom: 26px; }
.story p + p { margin-top: 18px; }
.story-figs { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.story-figs figure { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bb-deep); }
.story-figs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-figs figcaption {
  position: absolute; left: 16px; bottom: 16px; background: var(--bb-night); color: var(--bb-foam);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem;
}
.mission { font-size: clamp(1.5rem, 3.1vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; max-width: 30em; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); }
.values li { padding: 28px 0; border-top: 1px solid var(--bb-line); }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--color-text-muted); max-width: 44ch; }
.proof { position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden; color: var(--bb-foam); padding: clamp(32px, 5vw, 64px); background: var(--bb-deep); --ring: var(--bb-mint); }
.proof::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../images/web-design/web-design-work.jpg') center / cover; }
.proof::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(6, 20, 31, .95), rgba(11, 34, 55, .8)); }
.proof h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 18px; }
.proof p { max-width: 60ch; color: var(--bb-mist); }

/* ---- Contact page ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-panel { background: var(--bb-white); border: 1px solid var(--bb-line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.form-panel h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.form-panel > p { margin: 10px 0 28px; color: var(--color-text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field > label, .form-field > .label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.req { color: var(--bb-mint-dark); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--bb-ink);
  background: var(--bb-foam); border: 1.5px solid #678279; border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { min-height: 132px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1b2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
input:hover, select:hover, textarea:hover { border-color: var(--bb-mint-dark); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bb-mint-dark); box-shadow: 0 0 0 4px rgba(79, 184, 140, .35); background: var(--bb-white); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1.5px solid #678279; border-radius: var(--r-md); background: var(--bb-foam); cursor: pointer; font-weight: 600; font-size: .96rem; line-height: 1.25; transition: border-color .15s, background-color .15s; }
.checkbox-item:hover { border-color: var(--bb-mint-dark); }
.checkbox-item:has(input:checked) { border-color: var(--bb-mint-dark); background: #dff1e8; }
.checkbox-item input { width: 20px; height: 20px; accent-color: var(--bb-mint-dark); flex: none; }
.form-micro { margin-top: 14px; font-size: .92rem; color: var(--color-text-muted); text-align: center; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 700; }
.form-status.show { display: block; }
.form-status.success { background: #dff1e8; color: #14573d; }
.form-status.error { background: #fbe4e1; color: var(--bb-error); }
.form-panel .btn-primary { min-height: 58px; font-size: 1.05rem; }
.form-panel .btn-primary:disabled { opacity: .6; cursor: progress; }

.info-card { background: var(--bb-night); color: var(--bb-foam); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); --ring: var(--bb-mint); }
.info-card h3 { margin-bottom: 18px; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.info-row strong { display: block; font-size: .92rem; color: var(--bb-mist); font-weight: 600; }
.info-row a, .info-row span { font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.info-row a:hover { color: var(--bb-mint); }
.map-card { margin-top: 20px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--bb-line); }
.map-card iframe { width: 100%; height: 280px; border: 0; display: block; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.area-grid figure { border-radius: var(--r-xl); overflow: hidden; }
.area-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.faq-list { max-width: 820px; margin: clamp(28px, 4vw, 48px) auto 0; border-top: 2px solid var(--bb-ink); }
.faq-item { border-bottom: 1px solid var(--bb-line); }
.faq-question {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  min-height: 72px; padding: 18px 0; background: none; border: 0; cursor: pointer;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -0.015em;
}
.faq-question .plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq-question .plus::before, .faq-question .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.faq-question .plus::after { transform: rotate(90deg); }
.faq-item.open .plus::after { transform: rotate(0); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-answer p { padding: 0 0 22px; color: var(--color-text-muted); max-width: 64ch; }

/* ---- Legal & 404 -------------------------------------------------------------------------------- */

/* ---- Footer ----------------------------------------------------------------------------------------- */
.site-footer { background: var(--bb-night-2); color: var(--bb-mist); padding: clamp(56px, 7vw, 96px) 0 32px; --ring: var(--bb-mint); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand .brand-logo { height: 44px; }
.footer-tagline { margin-top: 18px; max-width: 28ch; color: var(--bb-foam); font-weight: 600; line-height: 1.4; }
.site-footer h4 { margin: 0 0 16px; font-size: 1rem; color: var(--bb-foam); font-weight: 700; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--bb-mint); }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: var(--bb-foam); }
.social-row a:hover { background: var(--bb-mint); border-color: var(--bb-mint); color: var(--bb-night); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.legal-links { display: flex; gap: 24px; }

/* ---- Responsive ------------------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-lead { grid-row: auto; grid-column: 1 / -1; }
  .tile-wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .steps li::before { grid-row: 1 / span 2; }
  .steps li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .steps h3 { margin: 8px 0 4px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .mock { max-width: 560px; }
  .mock-window { transform: rotateY(-4deg) rotateX(2deg); }
  .intro-grid, .page-hero .container, .service, .story, .contact-grid, .area-grid, .trust-grid { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-copy { order: 0; }
  .story-figs { position: static; }
  .values { grid-template-columns: 1fr; }
  .page-hero-visual { max-width: 560px; }
  .hero-index { max-width: 560px; }
  .trust-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .btn .full { display: none; }
  .btn .short { display: inline; }
  .header-actions .btn { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { flex-direction: column; align-items: flex-start; }
  .form-grid, .checkbox-grid, .check-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-logo { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave { animation: none; }
  * { transition-duration: .01ms !important; }
}
