/* CDS Brand Solutions — "Midnight Mediterranean"
   Brand tokens live in :root. Change a color here and it changes everywhere. */

:root {
  --night: #0A1628;       /* Base: deep Mediterranean navy */
  --night-2: #0F2038;     /* Lifted panels */
  --night-3: #17304F;     /* Borders, hover */
  --foam: #EEF2F7;        /* Body text */
  --mist: rgba(238, 242, 247, .66);
  --line: rgba(157, 190, 240, .22);

  --sky: #9DBEF0;         /* Cool accent: links, labels, buttons */
  --sand: #E8D8BD;        /* Warm accent: section titles */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --max: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--foam);
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(80,130,210,.22), transparent 60%),
    radial-gradient(900px 900px at -10% 40%, rgba(23,48,79,.9), transparent 60%),
    radial-gradient(1000px 600px at 110% 90%, rgba(232,216,189,.05), transparent 60%);
  background-attachment: fixed;
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything: the texture that stops dark sites looking flat */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--night); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.statement { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.16; color: var(--foam); margin: 0; }
.statement b { font-weight: 400; color: var(--mist); }
.title { color: var(--sand); font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.015em; margin: 0 0 .3em; }
.title--coral { color: var(--sand); }
.title--saffron { color: var(--sand); }
.title--pink { color: var(--sand); }
.title--mint { color: var(--sky); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
em, i, cite { font-style: normal; }
.body { max-width: 30em; }
.mist { color: var(--mist); }
.hl { color: var(--sky); }

.kicker {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em; font-size: .82rem;
  color: var(--sky); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}

.more {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem;
  color: var(--sky); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.more::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.more:hover::after { transform: translateX(4px) rotate(45deg); }
.more:hover { color: var(--foam); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px;
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--sky); color: var(--night); background: var(--sky);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--sky); }
.btn--line { background: transparent; color: var(--sky); }
.btn--line:hover { background: var(--sky); color: var(--night); }

/* Layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(80px, 12vw, 170px) 0; position: relative; }
section[id] { scroll-margin-top: 90px; }
.band--tight { padding: clamp(56px, 7vw, 100px) 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.two--top { align-items: start; }
@media (min-width: 901px) { .two--flip > :first-child { order: 2; } }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* Header: wordmark left, round menu right */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.site-header > * { pointer-events: auto; }
.site-header.is-scrolled { background: linear-gradient(rgba(10,22,40,.94) 40%, rgba(10,22,40,0)); padding-top: 12px; padding-bottom: 28px; }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--sky); }
.logo b { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: .005em; }
.logo span { font-family: var(--serif); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 5px; }
.header-right { display: flex; align-items: center; gap: 22px; }
.top-nav { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; }
.top-nav a { text-decoration: none; font-size: .95rem; font-weight: 400; color: var(--foam); padding: 8px 0; position: relative; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top-nav a:hover::after, .top-nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-nav a[aria-current="page"] { color: var(--sky); }
.btn--small { padding: 11px 20px; font-size: .88rem; }
.header-right .menu-btn { display: none; }
@media (max-width: 960px) {
  .top-nav { display: none; }
  .header-right .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) { .header-right .btn--small { display: none; } .logo b { font-size: 1.45rem; } }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(15,32,56,.6); color: var(--foam); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 .85rem/1 var(--sans); letter-spacing: .06em; transition: border-color .3s, background .3s;
}
.menu-btn:hover { border-color: var(--sky); }
.menu-btn i { display: grid; gap: 4px; width: 16px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; border-radius: 2px; }
.menu-btn i::after { width: 10px; justify-self: end; }
.menu-btn.close i::before { transform: translateY(2.75px) rotate(45deg); }
.menu-btn.close i::after { width: 16px; transform: translateY(-2.75px) rotate(-45deg); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--night); display: grid; grid-template-columns: 1fr 1.3fr;
  align-items: center; gap: 40px; padding: 120px max(var(--gutter), 8vw) 60px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 4px; order: 2; }
.menu nav a {
  font-family: var(--serif); font-size: clamp(2.8rem, 6.5vw, 5.4rem); line-height: 1.08;
  color: rgba(157,190,240,.5); text-decoration: none; transform: translateY(16px); opacity: 0;
  transition: color .3s, transform .6s var(--ease), opacity .6s var(--ease);
}
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; } .menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; } .menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu nav a:hover, .menu nav a[aria-current="page"] { color: var(--sky); }
.menu .info { display: grid; gap: 30px; font-size: .95rem; }
.menu .info h4, .footer h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--sky); margin: 0 0 8px; }
.menu .info p, .footer p { margin: 0; }
.menu .info a, .footer a { text-decoration: none; }
.menu .info a:hover, .footer a:hover { color: var(--sky); }
.menu .close { position: absolute; top: 22px; right: var(--gutter); }
@media (max-width: 760px) {
  .menu { grid-template-columns: 1fr; align-content: center; padding-top: 110px; }
  .menu nav { order: 0; }
  .menu .info { grid-template-columns: 1fr 1fr; font-size: .85rem; }
}
body.menu-open { overflow: hidden; }

/* Collage: pieces positioned in % so it scales down to phones intact */
.collage { position: relative; width: 100%; }
.collage > * { position: absolute; }
.print { margin: 0; border-radius: 6px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); outline: 1px solid var(--line); outline-offset: 10px; }
.print img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.collage > .print:first-child, .sector .print, .arch { border-radius: 999px 999px 6px 6px; }
.print figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px;
  background: rgba(10,22,40,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 500 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--foam);
}

/* Hero */
.hero { padding: 150px 0 clamp(60px, 9vw, 140px); }
.hero .two { grid-template-columns: .95fr 1.05fr; }
.hero-collage { aspect-ratio: 1 / 1.08; }
.hero-text .body { margin-top: clamp(40px, 6vw, 80px); margin-left: auto; max-width: 25em; font-size: 1.12rem; }
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero .two { grid-template-columns: 1fr; }
  .hero-collage { order: 2; max-width: 560px; margin-top: 20px; }
  .hero-text .body { margin-left: 0; }
}

/* Sector cards */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: clamp(40px, 6vw, 80px); }
.sector { text-decoration: none; display: block; }
.sector .print { position: relative; aspect-ratio: 4 / 5; }
.sector .print img { height: 100%; }
.sector:nth-child(2) .print { margin-top: 50px; }
.sector .print img { transition: transform 1s var(--ease); }
.sector:hover .print img { transform: scale(1.03); }
.sector .print { overflow: hidden; }
.sector h3 { margin: 30px 0 8px; }
.sector p { color: var(--mist); margin-bottom: 14px; }
@media (max-width: 900px) {
  .sectors { grid-template-columns: 1fr; max-width: 460px; gap: 56px; }
  .sector:nth-child(n) .print { margin-top: 0; }
}

/* Lists */
.proof { list-style: none; padding: 0; margin: 34px 0 40px; }
.proof li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3em 1fr; gap: 10px; }
.proof--plain li { grid-template-columns: 1fr; }
.proof li:last-child { border-bottom: 1px solid var(--line); }
.proof em { font-family: var(--serif); color: var(--sand); font-size: 1.15rem; }
.proof b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.proof span { color: var(--mist); font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 60px; }
.steps div { border-top: 1px solid var(--line); padding-top: 22px; }
.steps em { font-family: var(--serif); color: var(--sky); font-size: 1.1rem; display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--mist); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 60px); margin-top: 56px; counter-reset: cap; }
.caps div { border-top: 1px solid var(--line); padding: 24px 0 28px; }
.caps h3 { font-size: clamp(1.4rem, 1.8vw, 1.65rem); margin-bottom: 6px; display: flex; gap: 14px; align-items: baseline; }
.caps h3::before { counter-increment: cap; content: counter(cap, decimal-leading-zero); font: 500 .72rem/1 var(--sans); letter-spacing: .1em; color: var(--sky); }
.caps p { color: var(--mist); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* What it means for you */
.impact { list-style: none; margin: 40px 0 0; padding: 0; }
.impact li { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); padding: 26px 0; border-top: 1px solid var(--line); }
.impact li:last-child { border-bottom: 1px solid var(--line); }
.impact b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.25; }
.impact span { color: var(--mist); }
.impact span::before { content: "What it means for you"; display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
@media (max-width: 760px) { .impact li { grid-template-columns: 1fr; gap: 10px; } }

/* Marquee of who it's for */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee div { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: rgba(236,242,238,.85); white-space: nowrap; }
.marquee span::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--line); margin: 0 32px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(40px, 6vw, 80px); }
.pack {
  border: 1px solid var(--line); border-radius: 4px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(23,48,79,.55), rgba(15,32,56,.25)); position: relative; scroll-margin-top: 110px;
}
.pack--lead { border-color: rgba(157,190,240,.6); background: linear-gradient(180deg, rgba(157,190,240,.12), rgba(15,32,56,.25)); }
.pack .tag { font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--sand); margin-bottom: 18px; }
.pack h3 { font-size: clamp(2.1rem, 2.8vw, 2.6rem); margin-bottom: 12px; }
.pack .for { color: var(--mist); font-size: .97rem; }
.pack .price { font-family: var(--serif); font-size: 1.35rem; color: var(--sky); margin: 6px 0 22px; }
.pack .price small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--mist); }
.pack ul { list-style: none; padding: 22px 0 0; margin: 0 0 30px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .97rem; }
.pack li { padding-left: 22px; position: relative; line-height: 1.5; }
.pack li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--sky); }
.pack .btn, .pack .more { margin-top: auto; align-self: flex-start; }
@media (max-width: 980px) { .packages { grid-template-columns: 1fr; max-width: 560px; } }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px, 5vw, 80px); margin-top: 50px; }
.projects div { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.projects h3 { color: var(--sand); margin-bottom: 8px; }
.projects p { color: var(--mist); margin: 0; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* FAQ */
.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; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-family: var(--sans); font-weight: 200; font-size: 1.8rem; color: var(--sky); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--mist); padding-right: 44px; }

/* Sector detail */
.sector-block { scroll-margin-top: 90px; }
.ticks { list-style: none; padding: 0; margin: 30px 0 34px; }
.ticks li { padding: 18px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.25; margin-bottom: 4px; }
.ticks span { color: var(--mist); font-size: .97rem; }
.aside { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.3; color: var(--sand); margin: 0 0 34px; padding-left: 22px; border-left: 1px solid var(--sand); }
.jump { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 40px; }
.sticky { position: sticky; top: 110px; }
@media (max-width: 900px) { .sticky { position: static; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline small { font-family: var(--serif); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--sky); padding-top: 6px; }
.timeline b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin-bottom: 4px; }
.timeline span { color: var(--mist); font-size: .97rem; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Form */
.form { display: grid; gap: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label, .chips legend { display: block; font-family: var(--serif); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--sky); margin-bottom: 6px; padding: 0; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--mist); font-family: var(--sans); }
.field input, .field select, .field textarea {
  width: 100%; font: 300 1.05rem/1.4 var(--sans); color: var(--foam); background: transparent;
  border: 0; border-bottom: 1px solid rgba(157,190,240,.35); padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239DBEF0' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 12px no-repeat; }
.field select option { background: var(--night); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.field ::placeholder { color: rgba(236,242,238,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chips legend { width: 100%; margin-bottom: 12px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(157,190,240,.35); font-size: .92rem; cursor: pointer; transition: .25s; }
.chips input:checked + span { background: var(--sky); color: var(--night); border-color: var(--sky); }
.chips input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.fine { font-size: .82rem; color: var(--mist); margin: 0; }
.fine a { color: var(--sky); }
.hidden { position: absolute; left: -9999px; }
.contact-list { display: grid; gap: 30px; }
.contact-list h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--sky); margin: 0 0 6px; }
.contact-list a { text-decoration: none; font-size: 1.15rem; }
.contact-list a:hover { color: var(--sky); }


/* Closing CTA */
.closer-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }

/* Footer */
.footer { padding: 70px 0 30px; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 50px; }
.footer .base { border-top: 1px solid rgba(157,190,240,.4); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--serif); font-size: .85rem; color: var(--sky); }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; gap: 28px; } }

/* Inner page hero */
.page-hero { padding: 170px 0 clamp(40px, 6vw, 80px); }
.page-hero .statement { max-width: 21em; }

/* Reveal and parallax */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .marquee div { animation: none; }
}
