/* ==========================================================================
   Daniel Rees – Web Developer
   ========================================================================== */

:root {
  /* Brand */
  --orange: #FF914D;          /* signature orange (logo) */
  --orange-strong: #E05600;   /* hover / large accents */
  --orange-ink: #B8440A;      /* orange text on light backgrounds (AA) */
  --orange-soft: #FFE9DB;
  --orange-wash: #FFF4EC;

  /* Neutrals */
  --ink: #171412;
  --ink-2: #3A3531;
  --muted: #6B635D;
  --line: #E9E2DB;
  --paper: #FBF8F4;
  --surface: #FFFFFF;
  --night: #171412;
  --night-2: #221E1B;

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 18px;
  --radius-sm: 10px;
  --section-y: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgb(23 20 18 / .04), 0 8px 24px -8px rgb(23 20 18 / .10);
  --shadow-lg: 0 2px 4px rgb(23 20 18 / .04), 0 24px 48px -16px rgb(23 20 18 / .18);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.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: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons & links --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 20px -8px rgb(224 86 0 / .55); }
.btn-primary:hover { background: var(--orange-strong); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgb(255 255 255 / .25); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

.text-link {
  display: inline-flex; gap: .35em; align-items: center;
  color: var(--orange-ink); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.text-link:hover { background-size: 100% 2px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 248 244 / .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: auto; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-mark { transform: rotate(60deg); }
.brand-mark { aspect-ratio: 100 / 86.6; }
.brand-text {
  display: flex; flex-direction: column;
  font: 800 1.25rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em;
}
.brand-text small {
  font: 600 .6875rem/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase;
  color: var(--orange-ink); margin-top: 5px;
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--ink-2);
  position: relative; padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav ul a:hover::after { transform: scaleX(1); }
.site-nav ul a.is-active { color: var(--ink); }
.site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: var(--radius-sm);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgb(23 20 18 / .2);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a.is-active { color: var(--orange-ink); font-weight: 700; }
  .site-nav .btn { min-height: 52px; }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22A06B; box-shadow: 0 0 0 4px rgb(34 160 107 / .15); }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  font-weight: 800;
  margin: 24px 0 24px;
  letter-spacing: -0.035em;
}
.accent { color: var(--orange-strong); }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 34em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted);
}
.hero-points strong { display: block; font: 700 1.125rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }

.hero-visual { position: relative; max-width: 560px; width: 100%; justify-self: end; }
.honeycomb { width: 100%; height: auto; overflow: visible; }
.honeycomb .cell polygon { stroke-width: 2; stroke-linejoin: round; transition: transform .4s ease; }
.cell-brand polygon { fill: var(--orange); }
.cell-surface polygon { fill: var(--surface); stroke: var(--line); }
.cell-soft polygon { fill: var(--orange-soft); }
.cell-ink polygon { fill: var(--ink); }
.cell-outline polygon { fill: none; stroke: #DDD3CA; stroke-dasharray: 5 6; }
.cell-dot polygon { fill: var(--orange); }
.cell-mark path { fill: none; stroke: #fff; stroke-width: 7; }
.cell-icon { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cell-surface .cell-icon, .cell-soft .cell-icon { stroke: var(--orange-strong); }
.cell-ink .cell-icon { stroke: var(--orange); }
.honeycomb .cell { transform-box: fill-box; transform-origin: center; }
.honeycomb .cell-surface polygon, .honeycomb .cell-ink polygon, .honeycomb .cell-soft polygon, .honeycomb .cell-brand polygon {
  filter: drop-shadow(0 10px 14px rgb(23 20 18 / .08));
}
.js .honeycomb .cell { opacity: 0; transform: scale(.85); animation: cell-in .6s cubic-bezier(.2,.8,.3,1.2) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes cell-in { to { opacity: 1; transform: none; } }


@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; justify-self: center; }
}
@media (max-width: 520px) {
  .hero-visual { display: none; }
}

/* Clients strip ----------------------------------------------------------- */
.clients { border-block: 1px solid var(--line); background: var(--surface); }
.clients-inner { display: flex; align-items: center; gap: 16px 40px; padding-block: 28px; flex-wrap: wrap; }
.clients p { font-size: .875rem; color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.clients ul { display: flex; flex-wrap: wrap; gap: 12px 36px; flex: 1; }
.clients li { font: 700 1.125rem/1 var(--font-display); color: var(--ink); opacity: .7; letter-spacing: -0.01em; }

/* Sections ---------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.section-head-split .section-lede { max-width: 26em; margin-top: 0; }
.section-head h2, .about h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-lede { margin-top: 20px; font-size: 1.125rem; color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-ink);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.kicker-light { color: var(--orange); }

/* Services ---------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 36px 32px 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 58px; height: 50px; display: grid; place-items: center; margin-bottom: 28px;
  background: var(--orange-soft); color: var(--orange-strong);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background-color .3s ease, color .3s ease;
}
.service-card:hover .service-icon { background: var(--orange); color: var(--ink); }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-num { position: absolute; top: 32px; right: 32px; font: 700 .875rem/1 var(--font-display); color: var(--muted); opacity: .6; }
.service-card h3 { font-size: 1.625rem; margin-bottom: 12px; }
.service-card > p { color: var(--muted); }
.ticks { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8440A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; max-width: 620px; } }

/* SEO -------------------------------------------------------------------- */
.seo { background: var(--surface); border-top: 1px solid var(--line); }
.seo-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.seo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.seo-list li { position: relative; padding-left: 28px; }
.seo-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; aspect-ratio: 100 / 86.6;
  background: var(--orange); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.seo-list h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.seo-list p { color: var(--muted); font-size: .9875rem; }

.serp {
  position: relative; padding: 22px; border-radius: 22px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.serp-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .9375rem; color: var(--ink);
}
.serp-g { font: 800 1.125rem/1 var(--font-display); color: var(--orange-strong); }
.serp-query { flex: 1; }
.serp-query::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--ink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.serp-bar svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.serp-result { margin-top: 18px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.serp-result-top { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: .8125rem; line-height: 1.3; color: var(--ink); }
.serp-site small { display: block; color: var(--muted); font-size: .75rem; }
.serp-fav { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.serp-fav svg { width: 16px; }
.serp-title { margin-top: 10px; font-size: 1.1875rem; font-weight: 600; color: #1A0DAB; line-height: 1.3; }
.serp-desc { margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.55; }
.serp-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .875rem; color: #1A0DAB; }
.serp-result-ghost { display: grid; gap: 8px; opacity: .7; }
.serp-result-ghost span { height: 9px; border-radius: 99px; background: var(--line); }
.serp-result-ghost span:nth-child(1) { width: 32%; }
.serp-result-ghost span:nth-child(2) { width: 70%; height: 12px; }
.serp-result-ghost span:nth-child(3) { width: 88%; }
.serp-badge {
  position: absolute; right: -14px; bottom: -18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: badge-bob 7s ease-in-out infinite;
}
.serp-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 145 77 / .25); }
@keyframes badge-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }


@media (max-width: 960px) {
  .seo-grid { grid-template-columns: 1fr; }
  .serp { max-width: 560px; }
}
@media (max-width: 600px) {
  .seo-list { grid-template-columns: 1fr; }
  .serp-badge { position: static; margin-top: 16px; }
}

/* Process ----------------------------------------------------------------- */
.process { background: var(--orange-wash); border-block: 1px solid var(--orange-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  width: 52px; height: 45px; display: grid; place-items: center;
  font: 800 1rem/1 var(--font-display); color: var(--ink); background: var(--orange);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 68px; right: 12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px); opacity: .5;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .9875rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Work -------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); border-bottom: 1px solid var(--line); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-body > p:not(.work-meta) { color: var(--muted); }
.work-body .text-link { margin-top: auto; align-self: flex-start; padding-top: 4px; }
.work-meta { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.work-card h3 { font-size: 1.75rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }

.work-card-lg { grid-column: 1 / -1; flex-direction: row; }
.work-card-lg .work-media { flex: 1.3; aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--line); }
.work-card-lg .work-body { flex: 1; padding: 44px 40px; justify-content: center; }
.work-card-lg h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.work-card-lg .text-link { margin-top: 12px; }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card-lg { flex-direction: column; }
  .work-card-lg .work-media { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-card-lg .work-body { padding: 28px 28px 32px; }
}

/* About ------------------------------------------------------------------- */
.about { background: var(--surface); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { font-size: 1.125rem; }
.about-side h3 { font-size: 1.25rem; margin-bottom: 16px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.fit-note { margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--orange-wash); border: 1px solid var(--orange-soft); }
.fit-note p { margin-bottom: 14px; color: var(--ink-2); }

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

/* Contact ----------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; background: var(--night); color: rgb(255 255 255 / .75); padding-block: var(--section-y); }
.contact-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-hex {
  position: absolute; width: 560px; right: -220px; top: -160px; fill: none;
  stroke: var(--orange); stroke-width: .6; opacity: .35; overflow: visible;
}
.contact h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 14ch; }
.contact-lede { margin-top: 24px; max-width: 34em; font-size: 1.125rem; }
.contact-email {
  margin-top: 40px; font: 700 clamp(1.25rem, 4vw, 2.25rem)/1.2 var(--font-display);
  color: var(--orange); text-decoration: none; letter-spacing: -0.02em; word-break: break-word;
  border-bottom: 2px solid rgb(255 145 77 / .35); padding-bottom: 4px; transition: border-color .2s ease;
}
.contact-email:hover { border-color: var(--orange); }
.contact-actions { justify-content: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--night-2); color: rgb(255 255 255 / .6); font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; }
.site-footer a { color: rgb(255 255 255 / .8); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* Moving hexagons ---------------------------------------------------------
   Decorative, per section, via ::before/::after. Large outlines turn 60deg
   per loop (a hexagon's symmetry, so the loop is seamless); small filled
   ones bob. --p is set by main.js for a light scroll parallax. */
:root {
  --hex-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 90.6'%3E%3Cpolygon points='25,0 75,0 100,43.3 75,86.6 25,86.6 0,43.3' fill='none' stroke='%23FF914D' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hex-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 90.6'%3E%3Cpolygon points='25,0 75,0 100,43.3 75,86.6 25,86.6 0,43.3' fill='%23FFE9DB' stroke='none' stroke-width='0' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hex-orange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 90.6'%3E%3Cpolygon points='25,0 75,0 100,43.3 75,86.6 25,86.6 0,43.3' fill='%23FF914D' stroke='none' stroke-width='0' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hex-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 90.6'%3E%3Cpolygon points='25,0 75,0 100,43.3 75,86.6 25,86.6 0,43.3' fill='%23171412' stroke='none' stroke-width='0' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.deco { position: relative; overflow: hidden; isolation: isolate; }
.deco > .container { position: relative; z-index: 1; }
.deco::before, .deco::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  aspect-ratio: 104 / 90.6; background: center / contain no-repeat;
  translate: 0 calc(var(--p, 0) * var(--depth, 40px));
  will-change: transform, translate;
}
@keyframes hex-spin { to { transform: rotate(60deg); } }
@keyframes hex-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.services::before { background-image: var(--hex-outline); width: 260px; right: -70px; top: 70px; opacity: .45; --depth: 60px; animation: hex-spin 70s linear infinite; }
.services::after  { background-image: var(--hex-soft); width: 90px; left: 3%; bottom: 60px; --depth: 30px; animation: hex-bob 10s ease-in-out infinite; }

.process::before { background-image: var(--hex-outline); width: 200px; left: -60px; bottom: -40px; opacity: .5; --depth: 50px; animation: hex-spin 55s linear infinite reverse; }
.process::after  { background-image: var(--hex-orange); width: 38px; right: 9%; top: 64px; opacity: .9; --depth: 24px; animation: hex-bob 8s ease-in-out infinite; }

.work::before { background-image: var(--hex-outline); width: 340px; left: -150px; top: 38%; opacity: .35; --depth: 70px; animation: hex-spin 80s linear infinite; }
.work::after  { background-image: var(--hex-soft); width: 120px; right: -30px; bottom: 12%; --depth: 40px; animation: hex-bob 11s ease-in-out infinite -3s; }

.about::before { background-image: var(--hex-outline); width: 220px; right: -60px; bottom: -50px; opacity: .45; --depth: 50px; animation: hex-spin 65s linear infinite reverse; }
.about::after  { background-image: var(--hex-orange); width: 28px; left: 46%; top: 72px; --depth: 20px; animation: hex-bob 7s ease-in-out infinite -2s; }

.seo::before { background-image: var(--hex-outline); width: 240px; left: -90px; top: 60px; opacity: .35; --depth: 50px; animation: hex-spin 75s linear infinite; }
.seo::after  { background-image: var(--hex-soft); width: 80px; right: 4%; bottom: 40px; --depth: 30px; animation: hex-bob 9s ease-in-out infinite -4s; }

.contact::after { background-image: var(--hex-orange); width: 44px; left: 12%; bottom: 22%; opacity: .9; --depth: 30px; animation: hex-bob 9s ease-in-out infinite; }
.contact-hex { animation: hex-spin 90s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }

/* Hero honeycomb: float as one piece so the grid stays aligned */
.honeycomb { animation: honey-float 9s ease-in-out infinite 1s; }
@keyframes honey-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cell-outline polygon { animation: dash-march 14s linear infinite; }
.cell-brand polygon { animation: brand-glow 5s ease-in-out infinite 1.2s; }
@keyframes dash-march { to { stroke-dashoffset: -110; } }
@keyframes brand-glow {
  0%, 100% { filter: drop-shadow(0 10px 14px rgb(23 20 18 / .08)); }
  50% { filter: drop-shadow(0 10px 22px rgb(255 145 77 / .55)); }
}

/* Honeycomb hover. Uses the individual scale/rotate properties so it
   composes with the entrance animation's transform. */
@media (hover: hover) {
  .honeycomb .cell {
    transition: scale .35s cubic-bezier(.3,1.5,.5,1);
  }
  .honeycomb .cell > * { transition: opacity .3s ease; }
  .honeycomb .cell polygon { pointer-events: all; transition: fill .3s ease, stroke .3s ease, opacity .3s ease, rotate .6s cubic-bezier(.4,0,.2,1); transform-box: fill-box; transform-origin: center; }
  .honeycomb .cell-icon, .honeycomb .cell-mark { pointer-events: none; transition: stroke .3s ease; }
  .honeycomb:hover .cell:not(:hover) > * { opacity: .5; }
  .honeycomb .cell:hover { scale: 1.1; }

  .cell-surface:hover polygon { fill: var(--orange-soft); stroke: var(--orange); }
  .cell-soft:hover polygon { fill: var(--orange); }
  .cell-soft:hover .cell-icon { stroke: var(--ink); }
  .cell-ink:hover polygon { fill: var(--orange-strong); }
  .cell-ink:hover .cell-icon { stroke: #fff; }
  .cell-outline:hover polygon { fill: var(--orange-wash); stroke: var(--orange); stroke-dasharray: none; }
  .honeycomb .cell-brand:hover polygon { rotate: 60deg; }
}

@media (max-width: 700px) {
  .deco::before { opacity: .25; }
  .work::before { width: 220px; left: -120px; }
}
@media (prefers-reduced-motion: reduce) {
  .deco::before, .deco::after { translate: none; }
}

/* Cookie banner ----------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  width: min(420px, calc(100% - 32px));
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--ink); color: rgb(255 255 255 / .8); font-size: .9375rem; line-height: 1.55;
  box-shadow: 0 24px 48px -16px rgb(23 20 18 / .45);
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner strong { color: #fff; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions .btn { flex: 1; }
.btn-cookie-reject { border-color: rgb(255 255 255 / .3); color: #fff; background: transparent; }
.btn-cookie-reject:hover { border-color: #fff; }
@media (max-width: 520px) { .cookie-banner { left: 16px; bottom: 16px; } }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.link-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: rgb(255 255 255 / .8);
}
.link-button:hover { color: var(--orange); }

.cookie-banner a { color: var(--orange); font-weight: 600; }

/* Legal pages ------------------------------------------------------------- */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section-y); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); margin-bottom: 12px; }
.legal-updated { color: var(--muted); font-size: .9375rem; }
.legal-lede { margin-top: 28px; font-size: 1.1875rem; color: var(--ink); }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.1875rem; margin: 28px 0 8px; }
.legal p + p { margin-top: 14px; }
.legal p a, .legal li a, .link-inline {
  color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.link-inline { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.legal code { font-size: .875em; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.legal-list { margin: 12px 0 14px; display: grid; gap: 8px; }
.legal-list li { position: relative; padding-left: 24px; }
.legal-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 10px; aspect-ratio: 100 / 86.6;
  background: var(--orange); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.legal-table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 700; color: var(--ink); background: var(--paper); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-back { margin-top: 48px; }

/* Reveal on scroll -------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
