/* MELON — bespoke Nordic technology composition over the engine primitives. */
:root { color-scheme: light; }

html, body { overflow-x: clip; }

body {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(16,29,42,.035) 50%, transparent calc(50% + 1px)),
    var(--c-bg);
}

h1, h2, h3 {
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1, h2 { font-weight: 620; }
h3 { font-weight: 600; }

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: .98;
}
.page-hero .lead { max-width: 58ch; }

.site-header {
  background: rgba(237,242,240,.88);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(18px);
}

.brand { letter-spacing: .12em; font-weight: 800; }
.brand::before { content: ""; width: .72rem; height: .72rem; display: inline-block; margin-right: .65rem; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 .28rem rgba(85,240,186,.18); }

.desktop-nav a { font-size: .86rem; letter-spacing: .045em; text-transform: uppercase; }
.desktop-nav a:hover { color: #087b63; }

.eyebrow { color: #087b63; letter-spacing: .15em; font-weight: 750; }

.hero { background: var(--c-dark); color: var(--c-dark-text); position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 72px 72px; pointer-events: none; }
.hero--split { gap: 0; min-height: min(850px, calc(100svh - var(--header-h))); }
.hero--split .hero__copy { align-self: center; padding: clamp(4rem,8vw,8.5rem) clamp(1.2rem,5vw,6.5rem); position: relative; z-index: 1; }
.hero--split .hero__copy::after { content: "01 / MELON"; display: block; margin-top: clamp(2rem,5vw,5rem); font-size: .72rem; letter-spacing: .18em; color: var(--c-accent); }
.hero--split .hero__media { height: 100%; min-height: 560px; overflow: hidden; clip-path: polygon(10% 0,100% 0,100% 100%,0 100%); }
.hero--split .hero__media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.76) contrast(1.06); transform: scale(1.01); }
.hero h1 { font-size: clamp(3.45rem,7.3vw,8.3rem); line-height: .9; max-width: 10ch; }
.hero .lead { font-size: clamp(1.05rem,1.7vw,1.38rem); max-width: 48ch; color: rgba(241,248,245,.74); }

.btn, button[type="submit"] { border-radius: 999px; letter-spacing: .025em; box-shadow: none; }
.btn--accent, button[type="submit"] { background: var(--c-accent); color: var(--c-accent-contrast); }
.btn--accent:hover, button[type="submit"]:hover { background: #85ffd2; transform: translateY(-2px); }

.intro { position: relative; }
.intro::after { content: ""; position: absolute; right: var(--gutter); top: var(--section-y); width: clamp(5rem,10vw,9rem); aspect-ratio: 1; border: 1px solid var(--c-border); border-radius: 50%; background: radial-gradient(circle at center,var(--c-accent) 0 7%,transparent 8%); }
.intro h2 { max-width: 12ch; font-size: clamp(2.5rem,5vw,5.5rem); }

.services-list { border-top: 1px solid var(--c-border); }
.service-row { display: grid; grid-template-columns: minmax(10rem,.6fr) minmax(15rem,1.1fr) minmax(15rem,1fr); gap: clamp(1.5rem,4vw,5rem); align-items: center; padding: clamp(2rem,4vw,4rem) 0; border-bottom: 1px solid var(--c-border); transition: background .25s ease, padding .25s ease; }
.service-row:hover { background: rgba(255,255,255,.44); padding-inline: clamp(.5rem,1.5vw,1.5rem); }
.service-row img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); filter: saturate(.72); }
.service-row h3 { font-size: clamp(1.8rem,3.5vw,3.8rem); }

.process--split .step {
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: clamp(1rem, 2.4vw, 2.25rem);
  row-gap: .7rem;
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
}
.process--split .step > p {
  grid-column: 2;
  width: min(100%, 56ch);
  margin: 0;
  color: var(--c-muted);
}
.step__n { color: #087b63; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 0; }

.editorial-media img, .about-hero img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.editorial-copy { position: relative; }
.editorial-copy::before { content: "↘"; display: block; color: #087b63; font-size: 2rem; margin-bottom: 1.5rem; }

.inspiration-grid { gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.inspiration-item { overflow: hidden; border-radius: var(--radius-md); background: var(--c-surface); box-shadow: 0 16px 48px rgba(5,20,31,.09); }
.inspiration-item img { aspect-ratio: 16 / 10; transition: transform .65s cubic-bezier(.2,.8,.2,1); filter: saturate(.75); }
.inspiration-item figcaption { padding: clamp(1.25rem, 2.5vw, 2rem); }
.inspiration-item figcaption h3 { margin-bottom: .75rem; }
.inspiration-item figcaption p { margin-bottom: 0; color: var(--c-muted); }
.inspiration-item:hover img { transform: scale(1.035); }

.faq-list details { border-color: var(--c-border); }
.faq-list summary { font-size: clamp(1.08rem,1.8vw,1.35rem); }

.contact-shell { --contact-left: .76fr; --contact-right: 1.34fr; gap: clamp(2rem,6vw,7rem); }
.lead-form { background: var(--c-dark); color: var(--c-dark-text); border: 0; border-radius: var(--radius-md); padding: clamp(1.5rem,4vw,4rem); box-shadow: var(--shadow-card); }
.lead-form .field label, .lead-form .form-privacy { color: rgba(241,248,245,.7); }
.lead-form .field input, .lead-form .field select, .lead-form .field textarea { background: rgba(255,255,255,.08); color: var(--c-dark-text); border-color: rgba(255,255,255,.3); padding-inline: .75rem; }
.lead-form select option { color: var(--c-text); background: var(--c-surface); }

.site-footer { background: #06131c; position: relative; overflow: hidden; }
.site-footer::after { content: "MELON"; position: absolute; right: -1vw; bottom: -3vw; font-weight: 850; font-size: clamp(5rem,18vw,18rem); line-height: .75; letter-spacing: -.08em; color: rgba(255,255,255,.035); pointer-events: none; }
.footer--editorial .footer-grid { grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(140px, .65fr)); }
.cookie-banner { width: min(760px, calc(100% - 2rem)); left: 50%; right: auto; transform: translateX(-50%); overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .hero--split { min-height: 0; }
  .hero--split .hero__media { min-height: 0; height: clamp(300px,72vw,520px); clip-path: polygon(0 8%,100% 0,100% 100%,0 100%); }
  .hero--split .hero__copy { padding-block: 4.5rem 2.5rem; }
  .service-row { grid-template-columns: 1fr; }
  .service-row img { order: -1; width: 100%; }
  .intro::after { display: none; }
  .footer--editorial .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .page-hero h1 { font-size: clamp(2.55rem, 12vw, 3.5rem); overflow-wrap: anywhere; hyphens: auto; }
  .process--split .step { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .process--split .step > p { grid-column: 1 / -1; padding-left: 4.25rem; }
  .inspiration-grid { grid-template-columns: 1fr; }
  .footer--editorial .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { padding: 1rem; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: melon-rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  @keyframes melon-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
