/* ==========================================================================
   Ink Harbor: landing page styles
   Brand: Ink Harbor Brand Guidelines v1.0 (Oct 2026)
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/Oswald-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/WorkSans-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette */
  --ink: #121314;
  --navy: #0F2A44;
  --teal: #1F7A80;
  --paper: #F7F4EE;
  --coral: #D9533F;          /* accent only, ≤5% (hover states, a single word) */

  /* Derived tints/shades of the palette */
  --navy-deep: #0B2034;
  --teal-light: #8CC9CB;     /* teal tint for small text on navy */
  --paper-2: #EFEAE1;
  --line: rgba(18, 19, 20, .12);
  --line-light: rgba(247, 244, 238, .14);
  --muted: #4A4F55;
  --muted-light: rgba(247, 244, 238, .72);

  --font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(15, 42, 68, .06), 0 12px 32px -12px rgba(15, 42, 68, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.375rem; letter-spacing: .03em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
::selection { background: var(--teal); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--teal-light); }
.section-lede { font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--coral); border-color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: inherit; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  min-height: 46px; padding: .7em 1.35em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .85em 1.7em; font-size: 1rem; }
.btn-primary { --bg: var(--teal); --fg: #fff; --bd: var(--teal); }
.btn-primary:hover { --bg: var(--coral); --bd: var(--coral); }
.btn-ghost { --fg: var(--paper); --bd: rgba(247, 244, 238, .4); }
.btn-ghost:hover { --bd: var(--paper); --bg: rgba(247, 244, 238, .08); }
.btn-ghost-dark { --fg: var(--navy); --bd: rgba(15, 42, 68, .3); }
.btn-ghost-dark:hover { --bd: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(15, 42, 68, 0);
  color: var(--paper);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
  margin-bottom: calc(var(--header-h) * -1);
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(11, 32, 52, .94);
  box-shadow: 0 1px 0 var(--line-light), 0 10px 30px -18px rgba(0, 0, 0, .6) !important;
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(140, 201, 203, .45); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font-family: var(--font-head); font-size: .6875rem; letter-spacing: .26em; text-transform: uppercase; color: var(--teal-light); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 30px; }
.nav ul a {
  font-family: var(--font-head); font-size: .875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--muted-light); padding: 6px 0; position: relative; transition: color .2s;
}
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal-light); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover, .nav ul a.is-active { color: var(--paper); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: .55em 1.2em; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1.5px solid var(--line-light); border-radius: 50%;
    background: transparent; color: var(--paper); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 28px var(--gutter) 40px; background: var(--navy-deep);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--line-light); }
  .nav ul a { display: block; padding: 18px 0; font-size: 1.5rem; letter-spacing: .08em; color: var(--paper); }
  .nav ul a::after { display: none; }
  .nav-cta { min-height: 54px; font-size: 1rem; }
}

/* ---------- Wave-band motif (from the logo bowl) ---------- */
.hero-field, .process-field, .footer-bands {
  position: absolute; pointer-events: none;
  background: var(--teal);
  -webkit-mask: url("../assets/brand/mask-bands-field.svg") center / 1200px 400px repeat-x;
  mask: url("../assets/brand/mask-bands-field.svg") center / 1200px 400px repeat-x;
}
.band-divider { position: relative; height: clamp(44px, 5.5vw, 76px); background: var(--from, var(--paper)); overflow: hidden; }
.band-divider::before {
  content: ""; position: absolute; inset: 0;
  background: var(--teal);
  -webkit-mask: url("../assets/brand/mask-bands-strip.svg") center / 100% 100% no-repeat;
  mask: url("../assets/brand/mask-bands-strip.svg") center / 100% 100% no-repeat;
}
.band-divider::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--to, var(--ink)); z-index: -1; }
.band-divider--paper-to-ink { --from: var(--paper); background: linear-gradient(to bottom, var(--paper) 0 50%, var(--ink) 50% 100%); }
.band-divider--ink-to-paper { background: linear-gradient(to bottom, var(--ink) 0 50%, var(--paper) 50% 100%); }
.band-wrap { position: relative; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #143656 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 0;
}
.hero-field {
  left: 0; right: 0; bottom: -40px; height: 400px; opacity: .22; z-index: -1;
  -webkit-mask-image: url("../assets/brand/mask-bands-field.svg"), linear-gradient(to top, #000 30%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: url("../assets/brand/mask-bands-field.svg"), linear-gradient(to top, #000 30%, transparent);
  mask-composite: intersect;
  -webkit-mask-size: 1200px 400px, 100% 100%;
  mask-size: 1200px 400px, 100% 100%;
  -webkit-mask-repeat: repeat-x, no-repeat;
  mask-repeat: repeat-x, no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero-title { font-size: clamp(2.9rem, 6.7vw, 6.5rem); line-height: 1.12; letter-spacing: .01em; margin-bottom: 28px; }
.hero-title span { display: block; white-space: nowrap; }
.hero-greet { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: .06em; color: var(--paper); margin: 0 0 6px; }
.hero-lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--muted-light); max-width: 30em; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(100%, 480px); }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line-light);
}
.hero-facts li { padding: 26px 24px 34px 0; display: flex; flex-direction: column; gap: 4px; }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line-light); }
.hero-facts strong { font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.hero-facts span { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); font-family: var(--font-head); }

/* ---------- Clients ---------- */
.clients { background: var(--paper); border-bottom: 1px solid var(--line); }
.clients-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 34px; padding-bottom: 36px; text-align: center; }
.clients-label { flex: none; margin: 0; font-family: var(--font-head); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.clients-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; align-items: center; }
.clients-list li { font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 144px) 0; position: relative; }
.section-head h2 { margin-bottom: 22px; }
.section-head.center { text-align: center; margin: 0 auto clamp(48px, 6vw, 80px); }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 40px); }
.sticky-head .section-lede { margin-bottom: 28px; }
.service-list { border-top: 1px solid var(--line); counter-reset: s; }
.service { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.service-num { font-family: var(--font-head); font-size: .9375rem; font-weight: 500; color: var(--teal); letter-spacing: .1em; padding-top: 6px; }
.service h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); margin-bottom: 12px; color: var(--navy); transition: color .2s; }
.service p { color: var(--muted); margin-bottom: 16px; max-width: 36em; }
.service:hover h3 { color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8125rem; font-weight: 500; color: var(--navy); background: var(--paper-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }

/* ---------- Work ---------- */
.work { background: var(--ink); color: var(--paper); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.work-head h2 { margin: 0; }
.work-head .section-lede { color: var(--muted-light); margin: 0; max-width: 26em; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.work-item figure { margin: 0; }
/* Whole artwork always visible: 3:4 frame (Instagram grid ratio) with a mat sampled from the art. */
.work-img { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--mat, #1d1f21); aspect-ratio: 3 / 4; padding: 7%; display: grid; place-items: center; }
.work-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; transition: transform .6s var(--ease); }
.work-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.work-img--bleed img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
  border-radius: 0;
}
.work-item:hover .work-img img, .work-item:focus-within .work-img img { transform: scale(1.025); }
.work-client, .work-type { transition: color .35s var(--ease), opacity .35s var(--ease); }
.work-item:hover .work-client { color: var(--teal-light); }
.work-item:hover .work-type { opacity: 1; color: rgba(247, 244, 238, .85); }
.work-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(140, 201, 203, .45); border-radius: 999px; font-family: var(--font-head); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); vertical-align: 1px; }
.work-item figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.work-client { font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.work-type { font-size: .875rem; color: rgba(247, 244, 238, .6); }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line-light); }
.work-foot p { margin: 0; font-size: 1.125rem; color: var(--muted-light); }


/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.about-media { position: relative; padding-bottom: 72px; }
.about-img-main { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img-inset { position: absolute; right: -24px; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow); }
.about-copy h2 { margin-bottom: 28px; color: var(--navy); }
.about-copy p { color: var(--muted); font-size: 1.0625rem; }
.about-copy strong { color: var(--ink); }
.about-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.about-facts div { padding: 20px 28px 0 0; }
.about-facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.about-facts dt { font-family: var(--font-head); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.about-facts dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; text-transform: uppercase; color: var(--navy); letter-spacing: .03em; line-height: 1.15; }

/* ---------- Process ---------- */
.process { background: var(--navy); color: var(--paper); overflow: hidden; isolation: isolate; }
.process-field { inset: auto 0 -120px 0; height: 400px; opacity: .14; z-index: -1; }
.process h2 { color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); counter-reset: step; }
.step { position: relative; padding: 40px 34px 40px; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(11, 32, 52, .55); }
.step-num { display: block; font-family: var(--font-head); font-size: 4.5rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--teal-light); margin-bottom: 28px; letter-spacing: .02em; }
.step h3 { font-size: 1.625rem; margin-bottom: 14px; }
.step p { color: var(--muted-light); margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 74px; right: calc(-1 * clamp(16px, 2.4vw, 32px)); width: clamp(16px, 2.4vw, 32px); height: 1.5px; background: var(--teal-light); opacity: .5; }

/* ---------- Packages teaser ---------- */
.packages { background: linear-gradient(to bottom, var(--navy) 0 50%, var(--paper) 50% 100%); padding: 0 0 0; }
.packages-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden;
  background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); color: var(--ink);
}
.packages-copy { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.packages-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--navy); margin-bottom: 18px; }
.packages-lede { font-size: 1.1875rem; color: var(--muted); max-width: 26em; margin-bottom: 32px; }
.packages-media { position: relative; min-height: 320px; }
.packages-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inquiry ---------- */
.inquire { background: var(--paper); }
.inquire-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.inquire-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.inquire-intro h2 { color: var(--navy); margin-bottom: 22px; }
.next-list { margin: 32px 0 40px; border-top: 1px solid var(--line); }
.next-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.next-list span { font-family: var(--font-head); font-size: .8125rem; color: var(--teal); letter-spacing: .12em; }
.direct p { margin: 0 0 6px; }
.direct-label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.direct a { font-weight: 600; color: var(--navy); text-decoration-color: rgba(31, 122, 128, .5); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.direct a:hover { color: var(--coral); text-decoration-color: currentColor; }

.form-card { background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 56px); border-top: 4px solid var(--teal); }
.form-note { font-size: .8125rem; color: var(--muted); margin-bottom: 18px; text-align: right; }
.form-note span, .req { color: var(--coral); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.field { margin: 0 0 22px; min-width: 0; }
.field label, .fieldset legend { display: block; font-weight: 600; font-size: .9375rem; color: var(--navy); margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #D9D3C7; border-radius: var(--radius-sm);
  padding: 13px 15px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
::placeholder { color: #8A8B88; }
input:hover, textarea:hover, select:hover { border-color: #BDB5A6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(31, 122, 128, .16); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { padding-right: 40px; cursor: pointer; }
.field-hint { font-size: .8125rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .8125rem; font-weight: 600; color: #B23A28; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: #B23A28; background: #FFF8F6; }
.is-invalid .field-hint { display: none; }

.fieldset { border: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  border: 1.5px solid #D9D3C7; border-radius: 999px; background: var(--paper); color: var(--navy); font-size: .9375rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #A9A193; background: #fff; flex: none; transition: all .2s; }
.chip:hover span { border-color: var(--teal); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--teal); }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-privacy { font-size: .8125rem; color: var(--muted); margin: 0; }
.btn-submit { position: relative; min-width: 190px; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label::after { content: "…"; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 16px 0 0; font-weight: 600; color: #B23A28; }
.form-status:empty { display: none; }

.form-success { text-align: center; padding: clamp(24px, 4vw, 48px) 0; outline: none; animation: rise .6s var(--ease) both; }
.form-success .eyebrow { justify-content: center; }
.form-success .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.success-mark { color: var(--teal); margin: 0 auto 26px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(31,122,128,.1); }
.success-mark svg { width: 48px; height: 48px; }
.success-mark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s .25s var(--ease) forwards; }
.success-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: var(--navy); margin-bottom: 16px; text-transform: none; letter-spacing: .01em; }
.success-body { color: var(--muted); max-width: 32em; margin: 0 auto 24px; }
.success-body a { color: var(--navy); font-weight: 600; }
.demo-banner { max-width: 34em; margin: 0 auto 28px; padding: 14px 18px; border-radius: var(--radius-sm); background: #FFF6E0; border: 1.5px dashed #C9A23A; color: #5A4610; font-size: .875rem; text-align: left; }
.demo-banner code { font-size: .8125rem; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: var(--paper); padding: clamp(72px, 9vw, 112px) 0 32px; }
.footer-bands { inset: auto 0 -210px 0; height: 400px; opacity: .16; z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: clamp(48px, 7vw, 88px); }
.footer-brand img { width: 168px; margin-bottom: 22px; }
.footer-brand p { color: var(--muted-light); font-size: .9375rem; }
.footer-label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: .9375rem; opacity: .86; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--teal-light); }
.badge-line { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; line-height: 1.15; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .8125rem; color: rgba(247,244,238,.6); }
.footer-base p { margin: 0; }

/* ---------- Reveal on scroll ----------
   Only hidden when JS is running (html.js). .no-reveal (reduced motion, no IntersectionObserver,
   or main.js failed to load within 3s) shows everything immediately. */
.js:not(.no-reveal) [data-reveal] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js:not(.no-reveal) [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark img { width: 200px; }
  .services-grid, .about-grid, .inquire-grid { grid-template-columns: 1fr; }
  .sticky-head, .inquire-intro { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .packages-card { grid-template-columns: 1fr; }
  .packages-media { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
  .about-media { margin-right: 24px; }
  .clients-inner { gap: 16px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero .eyebrow { display: block; font-size: .75rem; letter-spacing: .16em; line-height: 1.6; }
  .hero .eyebrow::before { display: none; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li { padding: 20px 12px 22px 0; }
  .hero-facts li + li { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-light); }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .hero-actions .btn { flex: 1 1 auto; }
  .work-head, .work-foot { flex-direction: column; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  /* odd tile count on mobile: first tile spans both columns so rows stay even */
  .work-grid > .work-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .work-client { font-size: .875rem; }
  .work-type { font-size: .8125rem; }
  .work-tag { display: table; margin: 6px 0 0; }
  .service { grid-template-columns: 1fr; padding: 28px 0; }
  .service-num { padding: 0 0 4px; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; }
  .form-privacy { text-align: center; }
  .about-facts { grid-template-columns: 1fr 1fr 1.4fr; }
  .about-facts div { padding-right: 12px; }
  .about-facts div + div { padding-left: 12px; }
  .about-facts dd { font-size: 1.125rem; }
  .clients-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; border-top: 1px solid var(--line); }
  .clients-list li { font-size: .875rem; white-space: normal; padding: 14px 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; }
  .clients-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .clients-list li:last-child { grid-column: 1 / -1; border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .step { padding: 30px 26px; }
  .step-num { font-size: 3.5rem; margin-bottom: 20px; }
}
