:root {
  --ivory: #f7f0e4;
  --ivory-deep: #efe4d2;
  --champagne: #e8c99a;
  --gold: #c9a06a;
  --coral: #e8a090;
  --coral-deep: #d4816e;
  --pale-blue: #c9d9e8;
  --sea: #9eb8cc;
  --sunlight: #fff6e5;
  --ink: #2f2a26;
  --ink-soft: #5a524a;
  --nacre: rgba(255, 248, 238, 0.72);
  --pearl-edge: rgba(232, 201, 154, 0.55);
  --radius: 1.25rem;
  --shadow: 0 18px 50px rgba(90, 70, 45, 0.08);
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Saira", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 55% at 80% -10%, rgba(232, 160, 144, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(201, 217, 232, 0.45), transparent 50%),
    linear-gradient(180deg, var(--sunlight) 0%, var(--ivory) 35%, #f3ebe0 70%, #e8f0f6 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 240, 228, 0.78);
  border-bottom: 1px solid var(--pearl-edge);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne), var(--coral));
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(247, 240, 228, 0.96);
    border-bottom: 1px solid var(--pearl-edge);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(201, 160, 106, 0.2);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-pearl {
  background: linear-gradient(145deg, #fff8ee 0%, var(--champagne) 45%, var(--coral) 100%);
  box-shadow:
    0 0 0 0 rgba(232, 201, 154, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.btn-pearl::before,
.btn-pearl::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
}

.btn-pearl:hover::before {
  animation: pearl-ripple 1.1s ease-out;
}

.btn-pearl:hover::after {
  animation: pearl-ripple 1.1s ease-out 0.18s;
}

@keyframes pearl-ripple {
  0% {
    opacity: 0.7;
    width: 8px;
    height: 8px;
  }
  100% {
    opacity: 0;
    width: 140px;
    height: 140px;
  }
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--pearl-edge);
  color: var(--ink-soft);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero – full-bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff8ee;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(47, 42, 38, 0.72) 12%, rgba(47, 42, 38, 0.35) 55%, rgba(201, 160, 106, 0.18) 100%),
    linear-gradient(0deg, rgba(47, 42, 38, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 36rem;
  animation: rise-in 0.9s ease-out both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: #fff8ee;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--champagne);
}

.hero p {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  max-width: 32rem;
  color: rgba(255, 248, 238, 0.9);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.nacre-panel {
  background: var(--nacre);
  border: 1px solid var(--pearl-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* Service preview – not card grid SaaS style; editorial list */
.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  animation: rise-in 0.7s ease-out both;
}

.offer-row:nth-child(2) {
  animation-delay: 0.08s;
}

.offer-row:nth-child(3) {
  animation-delay: 0.16s;
}

.offer-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.35rem);
}

.offer-row h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
}

.offer-row p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.offer-meta {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 760px) {
  .offer-row {
    grid-template-columns: 1fr;
  }
}

/* Evidence */
.evidence {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.evidence blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
}

.evidence cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.evidence-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.evidence-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

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

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Services index */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-item {
  overflow: hidden;
}

.service-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.service-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.45rem;
}

.service-body h2 a {
  color: inherit;
  text-decoration: none;
}

.service-body p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

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

/* Service detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.detail-layout img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(201, 160, 106, 0.25);
}

.price-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: calc(var(--radius) - 0.25rem);
  background: linear-gradient(135deg, rgba(255, 246, 229, 0.9), rgba(201, 217, 232, 0.35));
  border: 1px solid var(--pearl-edge);
}

@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.75rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.4rem);
}

.blog-item h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.blog-item h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.blog-item p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
}

.prose-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.prose-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Portfolio */
.portfolio-stage {
  display: grid;
  gap: 2.5rem;
}

.portfolio-piece {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.portfolio-piece:nth-child(even) {
  grid-template-columns: 0.85fr 1.15fr;
}

.portfolio-piece:nth-child(even) .portfolio-copy {
  order: -1;
}

.portfolio-piece img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.portfolio-copy {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-copy .label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.65rem;
  line-height: 1.1;
}

.portfolio-copy p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .portfolio-piece,
  .portfolio-piece:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .portfolio-piece:nth-child(even) .portfolio-copy {
    order: 0;
  }
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-split img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

/* Contact / forms */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.form {
  padding: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--pearl-edge);
  background: rgba(255, 248, 238, 0.85);
  font: inherit;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--champagne);
  outline-offset: 1px;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  color: #a1453a;
  font-size: 0.85rem;
}

.form-row.has-error .field-error {
  display: block;
}

.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select {
  border-color: #a1453a;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(158, 184, 204, 0.35);
  border: 1px solid var(--sea);
}

.form-status.is-error {
  background: rgba(232, 160, 144, 0.35);
  border: 1px solid var(--coral-deep);
}

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

/* Legal */
.legal {
  max-width: 44rem;
  padding-bottom: 3rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
}

.legal .updated {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.55rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(247, 240, 228, 0.94);
  border-top: 1px solid var(--pearl-edge);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 40px rgba(90, 70, 45, 0.08);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.cookie-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--pearl-edge);
  background: linear-gradient(180deg, transparent, rgba(201, 217, 232, 0.25));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 0.8fr;
  gap: 1.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.65rem;
}

.footer-text {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 160, 106, 0.25);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

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

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

/* CTA band */
.cta-band {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--ink-soft);
}
