:root {
  --paper:  #FBFBF8;
  --sand:   #EFE8DB;
  --ink:    #16263A;
  --ink-2:  #3C4A5A;
  --muted:  #6A6F74;
  --tide:   #2C6B68;
  --beacon: #F4B52F;
  --beacon-deep: #E09D12;
  --line:   #DCD5C8;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-lg: 18px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200;
}
.skip:focus { top: 12px; }

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

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.045em;
}
.wm-lloyd { font-weight: 900; }
.wm-hc {
  font-weight: 500;
  color: var(--tide);
  margin-left: 0.04em;
  position: relative;
}
.wm-hc::after {
  content: '';
  position: absolute;
  left: 0.06em; right: 0.02em; bottom: -0.16em;
  height: 0.14em;
  background: var(--beacon);
  border-radius: 1em;
}
.wordmark-sm { font-size: 1.3rem; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9em 1.5em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.6em 1.15em; font-size: 0.9375rem; }
.btn-beacon { background: var(--beacon); color: var(--ink); }
.btn-beacon:hover { background: var(--beacon-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--beacon);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--tide); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.site-header nav { margin-left: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--beacon); text-decoration-thickness: 2px; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 11ch;
}
.lede {
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.search-demo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(22, 38, 58, 0.35);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  min-height: 56px;
}
.search-bar svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.caret {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--tide);
  margin-left: -8px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.results {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.result {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 12px;
}
.result-ghost span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: #EEEBE4;
}
.result-ghost span:nth-child(1) { width: 32%; }
.result-ghost span:nth-child(2) { width: 72%; height: 14px; }
.result-ghost span:nth-child(3) { width: 90%; }

.result-you {
  position: relative;
  background: #FFF9EA;
  border: 2px solid var(--beacon);
}
.you-tag {
  position: absolute;
  top: -12px; right: 16px;
  background: var(--beacon);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.r-url { font-size: 0.8125rem; color: var(--tide); }
.r-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.r-snippet { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.r-stars { font-size: 0.8125rem; color: var(--muted); }
.stars { color: var(--beacon-deep); letter-spacing: 1px; }

.search-demo figcaption {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.areas {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--paper); }

.section-head { max-width: 40rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }

/* Includes */
.includes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px clamp(32px, 4vw, 56px);
}
.includes li { border-top: 2px solid var(--ink); padding-top: 22px; }
.includes svg {
  width: 30px; height: 30px; margin-bottom: 18px;
  fill: none; stroke: var(--tide); stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.includes p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.process-head { position: sticky; top: 120px; margin-bottom: 0; }
.process-head .btn { margin-top: 32px; }

.steps {
  --progress: 0;
  list-style: none;
  padding: 0;
  position: relative;
  display: grid;
  gap: 56px;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--line);
}
.steps::after {
  background: var(--tide);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.steps li { position: relative; padding-left: 80px; }
.step-num {
  position: absolute; left: 0; top: -4px;
  z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--tide);
  color: var(--tide);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps h3 { font-size: 1.35rem; }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 36rem; }

/* Client work empty state */
.work-empty-text { margin-top: 16px; font-size: 1.25rem; color: #C9D1DA; max-width: 36rem; }
.work-empty-btn { margin-top: 32px; }

.project-meta { font-size: 0.875rem; font-weight: 600; color: var(--tide); margin-bottom: 4px; }
.project-quote {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--beacon);
  font-style: italic;
  color: var(--ink-2);
}
.project-quote p { margin-top: 0; }
.project-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form { position: relative; }
.quote-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.project-feature { grid-column: 1 / -1; }
.projects .project-feature a { flex-direction: row; }
.projects .project-feature img {
  width: 58%;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.project-feature .project-body { justify-content: center; }
.project-feature .project-body p { flex: 0; }
.project a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.project a:hover { border-color: var(--ink); }
.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-feature .project-body { padding: 30px 32px 34px; }
.project-feature h3 { font-size: 1.6rem; }
.project-body p { margin-top: 8px; color: var(--ink-2); font-size: 0.975rem; flex: 1; }
.project-feature .project-body p { font-size: 1.0625rem; max-width: 34rem; }
.project-link {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tide);
}
.project a:hover .project-link { text-decoration: underline; text-underline-offset: 4px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.portrait svg { width: 100%; height: auto; border-radius: var(--radius-lg); }
.about-copy p { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); max-width: 38rem; }
.about-copy p:first-of-type { margin-top: 24px; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tide);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 40rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.contact-copy h2 { color: var(--paper); }
.contact-copy p { margin-top: 16px; font-size: 1.125rem; color: #C9D1DA; max-width: 28rem; }
.contact-alt a { color: var(--paper); font-weight: 600; text-decoration-color: var(--beacon); text-underline-offset: 4px; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field:first-child { grid-column: 1 / -1; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--beacon); }
.field textarea { resize: vertical; min-height: 140px; }
.field [aria-invalid="true"] { border-color: #F08A7A; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form-status { font-weight: 500; color: #C9D1DA; }

/* Footer */
.site-footer { padding-block: 40px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner p:last-child { margin-left: auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .process-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .includes { grid-template-columns: repeat(2, 1fr); }
  .projects .project-feature a { flex-direction: column; }
  .projects .project-feature img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
  .search-demo { max-width: 560px; }
}

@media (max-width: 640px) {
  .includes,
  .projects,
  .quote-form { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .header-inner { height: 64px; }
  .wordmark { font-size: 1.4rem; }
  .footer-inner p:last-child { margin-left: 0; }
  .steps li { padding-left: 68px; }
}
