/* ============================================================
   BAREFOOT DESIGN LAB — barefoot.css
   A Division of Gulfnet · https://gulfnet.us/barefoot/

   Contents
   01. Tokens (brand colors, type, spacing, radius, shadow)
   02. Themes (light / dark) + text-size modes
   03. Base & utilities
   04. Buttons, links, badges, eyebrows
   05. Header + navigation
   06. Hero + scene
   07. Wave dividers & sand texture
   08. Services
   09. Why Barefoot
   10. Process
   11. Featured work
   12. About
   13. CTA
   14. Contact form
   15. Footer
   16. Motion, print, reduced-motion
   ============================================================ */

/* ---------- 01. TOKENS ------------------------------------ */
:root {
  /* Brand palette */
  --gulf-blue: #0E7490;
  --turquoise: #14B8A6;
  --sand: #F5E6C8;
  --palm: #2E7D32;
  --navy: #1F2937;
  --white: #FFFFFF;

  /* Derived tones */
  --gulf-blue-deep: #0A5A72;
  --turquoise-deep: #0D8F80;
  --sand-soft: #FBF3E3;
  --sand-line: #E6D3AE;
  --navy-deep: #131C28;
  --navy-soft: #2B3A4B;

  /* Type */
  --font-script: "Kaushan Script", "Segoe Script", "Brush Script MT", cursive;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.36vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.26rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4: clamp(2.15rem, 1.68rem + 2.35vw, 3.9rem);

  /* Space */
  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.125rem;
  --sp-4: 1.75rem;
  --sp-5: 2.5rem;
  --sp-6: 3.5rem;
  --sp-7: 5rem;
  --sp-section: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --shell: 1180px;

  /* Radius & borders */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --border: 1px solid var(--line);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(19, 28, 40, .06), 0 2px 8px rgba(19, 28, 40, .05);
  --shadow-md: 0 6px 18px rgba(19, 28, 40, .09), 0 2px 6px rgba(19, 28, 40, .05);
  --shadow-lg: 0 22px 48px rgba(19, 28, 40, .16), 0 6px 14px rgba(19, 28, 40, .08);
  --shadow-ring: 0 0 0 1px rgba(14, 116, 144, .12);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 02. THEMES ------------------------------------ */
:root[data-theme="light"] {
  --bg: var(--white);
  --bg-alt: var(--sand-soft);
  --surface: var(--white);
  --surface-2: #FAFBFC;
  --ink: var(--navy);
  --ink-soft: #4A5A6B;
  --line: #E3E9EE;
  --accent: var(--gulf-blue);
  --accent-strong: var(--gulf-blue-deep);
  --accent-bright: var(--turquoise-deep);
  --on-accent: var(--white);
  --dark-panel: var(--navy);
  --dark-panel-ink: #E9F2F4;
  --dark-panel-soft: #B4C6CE;
}

:root[data-theme="dark"] {
  --bg: var(--navy-deep);
  --bg-alt: #182534;
  --surface: #1C2836;
  --surface-2: #223141;
  --ink: #EAF1F4;
  --ink-soft: #A9BDC8;
  --line: #2E3F51;
  --accent: var(--turquoise);
  --accent-strong: #3ED2BF;
  --accent-bright: var(--turquoise);
  --on-accent: #06222B;
  --dark-panel: #101B27;
  --dark-panel-ink: #E9F2F4;
  --dark-panel-soft: #B4C6CE;
  --sand-soft: #1B2836;
  --sand-line: #2E3F51;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, .45);
  --shadow-ring: 0 0 0 1px rgba(20, 184, 166, .18);
}

/* Larger text mode (saved in localStorage) */
:root[data-textsize="large"] {
  font-size: 118.75%;
}

/* ---------- 03. BASE -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; 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: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--navy); color: var(--white);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 0; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

/* Grid and flex children default to min-width:auto, which lets long words,
   wide media, and aspect-ratio boxes push a track past the shell. */
.hero__inner > *, .about > *, .contact > *, .cards > *, .work > *, .form__row > * { min-width: 0; }

.section { position: relative; padding-block: var(--sp-section); }
.section--sand { background: var(--bg-alt); }
.section--navy { background: var(--dark-panel); color: var(--dark-panel-ink); }

/* Sandal-tread texture: low-opacity repeating footprint dots */
.section--sand::before,
.section--navy::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 22%, currentColor 1.4px, transparent 1.5px),
    radial-gradient(circle at 55% 60%, currentColor 1.4px, transparent 1.5px),
    radial-gradient(circle at 82% 30%, currentColor 1px, transparent 1.1px);
  background-size: 74px 74px, 96px 96px, 58px 58px;
  opacity: .05;
  pointer-events: none;
}
.section--sand::before { color: var(--gulf-blue); }
.section--navy::before { color: var(--turquoise); }

.section__head { max-width: 46rem; margin-bottom: var(--sp-5); }
.section__title { font-size: var(--step-3); font-weight: 700; margin-block: var(--sp-2) var(--sp-3); }
.section__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 38rem; }
.section__head--onDark .section__lede { color: var(--dark-panel-soft); }
.section__note {
  margin-top: var(--sp-4); font-size: var(--step--1); color: var(--ink-soft);
  border-left: 3px solid var(--turquoise); padding-left: var(--sp-2);
}

/* ---------- 04. BUTTONS / LINKS / BADGES ------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow__dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--turquoise); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18);
}
.section__head--onDark .eyebrow { color: var(--turquoise); }

.badge {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(20, 184, 166, .3);
  padding: .3rem .6rem; border-radius: var(--r-pill); white-space: nowrap;
}
:root[data-theme="dark"] .badge { color: var(--turquoise); }

.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  line-height: 1; padding: .95rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid transparent; background: var(--btn-bg); color: var(--btn-ink);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .65rem 1.1rem; font-size: var(--step--1); }
.btn__icon { width: 1.1em; height: 1.1em; }

.btn--primary {
  --btn-bg: var(--gulf-blue);
  --btn-ink: var(--white);
  box-shadow: 0 8px 18px rgba(14, 116, 144, .28);
}
.btn--primary:hover { --btn-bg: var(--gulf-blue-deep); box-shadow: 0 12px 26px rgba(14, 116, 144, .34); }
:root[data-theme="dark"] .btn--primary { --btn-bg: var(--turquoise); --btn-ink: #06222B; box-shadow: 0 8px 18px rgba(20, 184, 166, .25); }
:root[data-theme="dark"] .btn--primary:hover { --btn-bg: #3ED2BF; }

.btn--ghost { border-color: var(--line); --btn-ink: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--turquoise); --btn-ink: var(--accent-strong); }

.btn--outline { border-color: rgba(255, 255, 255, .45); --btn-ink: var(--white); }
.btn--outline:hover { border-color: var(--turquoise); --btn-ink: var(--turquoise); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--turquoise); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow.is-placeholder { color: var(--ink-soft); }

.microcopy {
  margin-top: var(--sp-5); text-align: center;
  font-family: var(--font-script); font-size: var(--step-2); color: var(--accent);
}

/* ---------- 05. HEADER ------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 72px; padding-block: .6rem;
}

/* Logo mark: </ flip-flop /> — inlined so every part can be styled per context */
.mark { --mark-bracket: var(--accent); --mark-sole: var(--gulf-blue); --mark-edge: var(--turquoise); --mark-detail: var(--sand); --mark-palm: var(--turquoise); }
.mark .mark__bracket { fill: none; stroke: var(--mark-bracket); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.mark .mark__sole { fill: var(--mark-sole); stroke: var(--mark-edge); stroke-width: 3; }
.mark .mark__strap { fill: none; stroke: var(--mark-detail); stroke-width: 4.5; stroke-linecap: round; }
.mark .mark__post { fill: var(--mark-detail); }
.mark .mark__wave { fill: none; stroke: var(--mark-detail); stroke-width: 3; stroke-linecap: round; }
.mark .mark__palm { fill: none; stroke: var(--mark-palm); stroke-width: 2.2; stroke-linecap: round; }
.mark .mark__flop { transform-origin: 60px 48px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 46px; height: 37px; flex: none; }
.brand__mark .mark__flop { transition: transform .4s var(--ease); }
.brand:hover .mark__flop { transform: rotate(-9deg) scale(1.04); }

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__script { font-family: var(--font-script); font-size: 1.4rem; color: var(--accent); letter-spacing: .01em; }
.brand__lab {
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}

.badge--header { margin-right: auto; }

.nav { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-3); }
.nav__link {
  position: relative; font-weight: 600; font-size: var(--step--1);
  color: var(--ink); text-decoration: none; padding: .4rem .15rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--turquoise); border-radius: 2px; transition: right .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }
.nav__link.is-active { color: var(--accent-strong); }
:root[data-theme="dark"] .nav__link.is-active { color: var(--turquoise); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }

.iconbtn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.iconbtn:hover { border-color: var(--turquoise); color: var(--accent-strong); }
.iconbtn__icon { width: 18px; height: 18px; grid-area: 1 / 1; }
.iconbtn__type { font-family: var(--font-display); font-weight: 800; font-size: .9rem; line-height: 1; }
.iconbtn__type sup { font-size: .6em; }
:root[data-theme="light"] .iconbtn__icon--sun { display: none; }
:root[data-theme="dark"] .iconbtn__icon--moon { display: none; }
#textSizeToggle[aria-pressed="true"] { border-color: var(--turquoise); color: var(--accent-strong); background: rgba(20, 184, 166, .1); }

.hamburger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.hamburger__bars { display: grid; gap: 5px; justify-items: center; }
.hamburger__bars i {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .badge--header { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: var(--sp-3);
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: var(--sp-4) 1.25rem var(--sp-5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: .85rem .25rem; font-size: var(--step-1); border-bottom: 1px solid var(--line); }
  .nav__actions { justify-content: space-between; }
  .nav__actions .btn { flex: 1; margin-left: .5rem; }
}

/* ---------- 06. HERO -------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 1rem + 6vw, 5rem); padding-bottom: clamp(5rem, 3rem + 8vw, 8rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero__glow--a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(20, 184, 166, .38), transparent 70%); }
.hero__glow--b { width: 40vw; height: 40vw; right: -10vw; top: 18vw; background: radial-gradient(circle, rgba(245, 230, 200, .75), transparent 70%); }
:root[data-theme="dark"] .hero__glow--b { background: radial-gradient(circle, rgba(14, 116, 144, .45), transparent 70%); }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}

.hero__title { font-size: var(--step-4); font-weight: 800; margin-block: var(--sp-3) var(--sp-3); max-width: 15ch; }
.hero__title-em { color: var(--accent); display: inline-block; }
.hero__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero__trust {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--sp-4);
  font-size: var(--step--1); color: var(--ink-soft);
}
.hero__trust-icon { width: 15px; height: 20px; color: var(--turquoise); }

/* Hero scene: horizon + flip-flop mark + layered waves */
.hero__visual { position: relative; }
.scene {
  position: relative; aspect-ratio: 5 / 4.2; min-height: 320px;
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, #0C2337 0%, #123D57 44%, var(--gulf-blue) 72%, var(--turquoise-deep) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-ring);
  isolation: isolate;
}
.scene__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 8%, rgba(245, 230, 200, .35), transparent 60%),
    radial-gradient(60% 30% at 78% 22%, rgba(245, 230, 200, .3), transparent 70%);
}
.scene__mark {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  width: min(68%, 330px); height: auto; z-index: 2;
  --mark-bracket: var(--sand);
  --mark-sole: #16BFAE;
  --mark-edge: var(--sand);
  --mark-detail: var(--navy);
  --mark-palm: var(--palm);
}
.scene__mark .mark__strap { stroke-width: 5; }
.scene__mark .mark__palm { stroke-width: 2.6; }
.scene__mark .mark__flop { animation: floatFlop 7s var(--ease) infinite; }
.scene__mark .mark__bracket--left { animation: bracketInLeft 1.1s var(--ease) both; }
.scene__mark .mark__bracket--right { animation: bracketInRight 1.1s var(--ease) both; }

.scene__waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 46%; z-index: 3; }
.scene__wave { fill: rgba(245, 230, 200, .18); }
.scene__wave--1 { animation: drift 14s linear infinite; }
.scene__wave--2 { fill: rgba(245, 230, 200, .3); animation: drift 10s linear infinite reverse; }
.scene__wave--3 { fill: var(--sand); animation: drift 18s linear infinite; }

.scene__chip {
  position: absolute; left: 50%; bottom: 6%; translate: -50% 0; z-index: 4;
  background: var(--navy); color: var(--sand);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.62rem, .5rem + .4vw, .78rem);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); white-space: nowrap;
  animation: floatChip 5.5s ease-in-out infinite;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* min-width:0 keeps the scene's aspect-ratio from inflating the track. */
  .hero__inner > * { min-width: 0; }
  .hero__title { max-width: none; }
  .hero__visual { order: -1; }
  .scene { min-height: 200px; aspect-ratio: 16 / 11; }
}

/* ---------- 07. WAVE DIVIDERS ----------------------------- */
.wave-divider { position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; }
.wave-divider svg { display: block; width: 100%; height: clamp(40px, 5vw, 76px); }
.wave-divider--to-sand { bottom: 0; color: var(--bg-alt); }
.wave-divider--to-sand path { fill: currentColor; }
.wave-divider--to-cta { top: 0; transform: translateY(-99%); color: var(--dark-panel); }
.wave-divider--to-cta path { fill: currentColor; }

/* ---------- 08. SERVICES ---------------------------------- */
/* Five services, so the grid is built around five: one row on wide screens,
   3 + 2 (both rows full-width) on tablets, stacked on phones. */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }

@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 3; }
}
@media (min-width: 780px) {
  .card { grid-column: span 2; }
  .card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
}
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
}
.card {
  position: relative; background: var(--surface); border: var(--border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--gulf-blue));
  border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(20, 184, 166, .5); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--sp-3);
  border-radius: 16px; background: rgba(20, 184, 166, .12); color: var(--accent-strong);
}
:root[data-theme="dark"] .card__icon { color: var(--turquoise); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--step-1); font-weight: 700; margin-bottom: .4rem; }
.card__body { color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- 09. WHY BAREFOOT ------------------------------ */
.split {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.split__panel { padding: var(--sp-5) var(--sp-4); }
.split__panel--relaxed { background: var(--sand); color: var(--navy); }
.split__panel--pro { background: var(--navy); color: var(--dark-panel-ink); }
.split__label {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step--1);
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--sp-2);
}
.split__panel--relaxed .split__label { color: var(--gulf-blue-deep); }
.split__panel--pro .split__label { color: var(--turquoise); }
.split__quote { font-family: var(--font-script); font-size: var(--step-2); line-height: 1.3; margin-bottom: var(--sp-2); }
.split__panel--pro .split__quote { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.split__body { font-size: var(--step--1); opacity: .88; }
.split__seam { display: grid; place-items: center; width: 56px; background: linear-gradient(90deg, var(--sand), var(--navy)); }
.split__seam-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--turquoise); color: var(--navy);
  font-family: var(--font-script); font-size: 1.3rem; box-shadow: var(--shadow-md);
}

.values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-2); margin-top: var(--sp-4);
}
.value {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: var(--border); border-radius: var(--r-pill);
  padding: .8rem 1.1rem; font-weight: 500; font-size: var(--step--1);
}
.value__check { width: 18px; height: 18px; flex: none; color: var(--palm); }
:root[data-theme="dark"] .value__check { color: var(--turquoise); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split__seam { width: auto; height: 48px; background: linear-gradient(180deg, var(--sand), var(--navy)); }
}

/* ---------- 10. PROCESS ----------------------------------- */
.process { position: relative; padding-top: var(--sp-4); }
.process__path {
  position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 120px;
  overflow: visible; pointer-events: none;
}
.process__path path {
  fill: none; stroke: rgba(20, 184, 166, .75); stroke-width: 3;
  stroke-dasharray: 0.5 13; stroke-linecap: round;
  animation: tideDraw 2.4s var(--ease) both;
}
.process__steps {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3);
}
/* Offsets track the wave: steps 1 and 3 ride the crests, 2 and 4 sit in the
   troughs, so every footprint lands on the dotted path above. */
.step { padding-top: 11px; }
.step:nth-child(2), .step:nth-child(4) { padding-top: 71px; }
.step__num { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: var(--sp-2); }
.step__num svg { width: 36px; height: 48px; color: rgba(20, 184, 166, .3); }
.step__num b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--sand);
}
.step__title { font-size: var(--step-2); font-weight: 700; margin-bottom: .35rem; }
.step__body { color: var(--dark-panel-soft); font-size: var(--step--1); max-width: 22ch; }

@media (max-width: 820px) {
  .process__path { display: none; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .step, .step:nth-child(n) { padding-top: 0; }
  .step__body { max-width: none; }
}
@media (max-width: 520px) {
  .process__steps { grid-template-columns: 1fr; }
}

/* ---------- 11. FEATURED WORK ----------------------------- */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.work__item {
  display: flex; flex-direction: column;
  background: var(--surface); border: var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* CSS-generated placeholder artwork (no stock photos, nothing to break) */
.work__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work__thumb--a { background: linear-gradient(140deg, var(--navy), var(--gulf-blue)); }
.work__thumb--b { background: linear-gradient(140deg, var(--gulf-blue), var(--turquoise-deep)); }
.work__thumb--c { background: linear-gradient(140deg, #163445, var(--palm)); }
.work__chrome {
  position: absolute; top: 0; left: 0; right: 0; height: 26px;
  display: flex; align-items: center; gap: 5px; padding-inline: 10px;
  background: rgba(255, 255, 255, .1);
}
.work__chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 230, 200, .6); }
.work__shape { position: absolute; display: block; background: rgba(245, 230, 200, .85); }
.work__shape--bar { left: 10%; top: 42%; width: 46%; height: 10px; border-radius: 6px; }
.work__thumb::after {
  content: ""; position: absolute; left: 10%; top: 52%; width: 34%; height: 6px;
  border-radius: 4px; background: rgba(245, 230, 200, .45);
}
.work__shape--block { right: 8%; top: 34%; width: 30%; height: 42%; border-radius: 12px; background: rgba(20, 184, 166, .55); }
.work__shape--pill { left: 10%; top: 60%; width: 26%; height: 22px; border-radius: var(--r-pill); background: rgba(20, 184, 166, .8); }
.work__shape--circle { left: 12%; top: 34%; width: 62px; height: 62px; border-radius: 50%; background: rgba(245, 230, 200, .55); }
.work__shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.work__meta { padding: var(--sp-3) var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.work__cat {
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong);
}
:root[data-theme="dark"] .work__cat { color: var(--turquoise); }
.work__title { font-size: var(--step-1); font-weight: 700; }
.work__body { color: var(--ink-soft); font-size: var(--step--1); flex: 1; }

/* ---------- 12. ABOUT ------------------------------------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.about__body { margin-block: var(--sp-3); color: var(--ink-soft); font-size: var(--step-1); }
.callout {
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px dashed var(--sand-line); border-left: 4px solid var(--turquoise);
  border-radius: var(--r-md);
}
.callout p { font-family: var(--font-script); font-size: var(--step-2); color: var(--accent-strong); }
:root[data-theme="dark"] .callout p { color: var(--turquoise); }

.brandframe { margin: 0; }
.brandframe__window {
  border-radius: var(--r-lg); overflow: hidden; border: 8px solid var(--surface);
  box-shadow: var(--shadow-lg), var(--shadow-ring); rotate: -1.2deg;
  transition: rotate .4s var(--ease);
}
.brandframe__window:hover { rotate: 0deg; }
.brandframe__caption { margin-top: var(--sp-3); font-size: var(--step--1); color: var(--ink-soft); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- 13. CTA --------------------------------------- */
.cta {
  position: relative; margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--dark-panel); color: var(--dark-panel-ink);
  padding-block: clamp(3.5rem, 6vw, 6rem);
  text-align: center; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; left: 50%; bottom: -40%; translate: -50% 0;
  width: 120%; height: 80%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 184, 166, .28), transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 44rem; }
.cta__title { font-size: var(--step-3); font-weight: 800; }
.cta__body { margin-top: var(--sp-3); color: var(--dark-panel-soft); font-size: var(--step-1); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); }
.cta__phone { margin-top: var(--sp-3); font-size: var(--step--1); color: var(--dark-panel-soft); }
.cta__phone a { color: var(--turquoise); }

/* ---------- 14. CONTACT FORM ------------------------------ */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact__facts { margin-top: var(--sp-4); display: grid; gap: .6rem; }
.contact__facts li {
  display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; gap: .5rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: var(--step--1);
}
.contact__facts span {
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}

.nextup { margin-top: var(--sp-4); }
.nextup__title {
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: var(--sp-2);
}
.nextup__list { counter-reset: nextup; display: grid; gap: .7rem; }
.nextup__list li {
  counter-increment: nextup; position: relative; padding-left: 2.1rem;
  font-size: var(--step--1); color: var(--ink-soft);
}
.nextup__list li::before {
  content: counter(nextup); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: rgba(20, 184, 166, .16); color: var(--accent-strong);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
}
:root[data-theme="dark"] .nextup__list li::before { color: var(--turquoise); }

/* Real project screenshots */
.work__imglink { display: block; overflow: hidden; }
.work__imglink:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.work__imgwrap { position: relative; overflow: hidden; }
.work__imglink img, .work__imgwrap img { transition: transform .5s var(--ease); display: block; width: 100%; }
.work__item:hover .work__imglink img,
.work__item:hover .work__imgwrap img { transform: scale(1.03); }

.work__offline-badge {
  position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2;
  background: rgba(19, 28, 40, .82); color: var(--sand);
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.work__offline-note {
  display: block; margin-top: .35rem;
  font-size: var(--step--1); color: var(--ink-soft); font-style: italic;
}

/* Parked form placeholder — swap this div for the real <form> when ready */
.form--parked {
  display: flex; flex-direction: column; gap: var(--sp-3);
  justify-content: center; padding: clamp(1.5rem, 4vw, 2.75rem);
  min-height: 260px;
}
.form--parked__msg {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: var(--step-1); color: var(--ink-soft);
}
.form--parked__icon { width: 1.3em; height: 1.3em; flex: none; margin-top: .18em; color: var(--accent); }
.form--parked__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.form--parked__hint {
  font-size: var(--step--1); color: var(--ink-soft); opacity: .7;
  border-top: 1px dashed var(--line); padding-top: var(--sp-3); margin-top: var(--sp-1);
}

.form {
  background: var(--surface); border: var(--border); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-md);
  display: grid; gap: var(--sp-3);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field { display: grid; gap: .35rem; }
.field__label {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--1);
  color: var(--ink); padding: 0;
}
.field__hint { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.req { color: var(--accent-strong); }
.field__input {
  width: 100%; font-family: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .75rem .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input:hover { border-color: var(--sand-line); }
.field__input:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(20, 184, 166, .2); outline: none; }
.field__input--area { resize: vertical; min-height: 8rem; line-height: 1.6; }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 1.35rem, calc(100% - 14px) 1.35rem; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field__error { color: #B3261E; font-size: var(--step--1); font-weight: 500; }
:root[data-theme="dark"] .field__error { color: #FF9B92; }
.field__input.is-invalid { border-color: #B3261E; background: rgba(179, 38, 30, .05); }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .5rem .9rem;
  font-size: var(--step--1); background: var(--surface-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.choice input { accent-color: var(--gulf-blue); }
.choice:has(input:checked) { border-color: var(--turquoise); background: rgba(20, 184, 166, .12); }

.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--step--1); cursor: pointer; }
.consent input { margin-top: .28rem; width: 18px; height: 18px; accent-color: var(--gulf-blue); flex: none; }

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

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.form__note { font-size: var(--step--1); color: var(--ink-soft); flex: 1; min-width: 14rem; }
.form__status { font-weight: 600; font-size: var(--step--1); }
.form__status:empty { display: none; }
.form__status.is-error { color: #B3261E; }
.form__status.is-ok { color: var(--palm); }
:root[data-theme="dark"] .form__status.is-error { color: #FF9B92; }
:root[data-theme="dark"] .form__status.is-ok { color: var(--turquoise); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- 15. FOOTER ------------------------------------ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: var(--sp-6); }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr .7fr 1.1fr; gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}
.brand--footer .brand__mark { width: 54px; height: 43px; }
.footer__division { margin-top: var(--sp-2); font-weight: 600; font-size: var(--step--1); color: var(--accent-strong); }
:root[data-theme="dark"] .footer__division { color: var(--turquoise); }
.footer__services { font-size: var(--step--1); color: var(--ink-soft); margin-top: .25rem; }
.footer__heading {
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: var(--sp-2);
}
.footer__nav ul { display: grid; gap: .5rem; }
.footer__nav a { color: var(--ink); text-decoration: none; font-size: var(--step--1); }
.footer__nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer__tagline { font-size: var(--step-1); line-height: 1.5; }
.footer__tagline .brand__script { font-size: 1.5em; color: var(--accent); }
.footer__flip { margin-top: var(--sp-2); font-family: var(--font-script); font-size: var(--step-1); color: var(--ink-soft); }

.footer__legal {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-block: var(--sp-3) var(--sp-4);
  font-size: var(--step--1); color: var(--ink-soft);
}
.footer__top { font-weight: 600; text-decoration: none; }
.footer__top:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ---------- 16. MOTION ------------------------------------ */
@keyframes floatFlop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bracketInLeft {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bracketInRight {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-8%); }
}
@keyframes tideDraw {
  from { stroke-dashoffset: 40; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* Scroll reveal (JS adds .is-visible) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .work__item:hover { transform: none; }
}

/* ---------- PRINT ----------------------------------------- */
@media print {
  .site-header, .hamburger, .nav__actions, .skip-link, .hero__bg, .scene__waves,
  .wave-divider, .form__submit, .footer__top, .cta::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .cta, .hero { padding-block: 1rem; break-inside: avoid; }
  .section--navy, .cta, .split__panel--pro { background: #fff !important; color: #000 !important; }
  .card, .work__item, .form { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .scene { min-height: 0; aspect-ratio: 3 / 1; }
}
