/* Squid Lid — squid-ink deep blues, paper daylight, coral flash.
   Page rhythm: dive (hero) → surface (work) → dive (origin) → surface (contact). */

:root {
  --ink: #0C1424;          /* squid ink — blue-black, not black */
  --ink-2: #152238;        /* lighter water */
  --ink-line: #2A3A57;     /* hairlines on ink */
  --paper: #F5F6F2;        /* cool paper, not cream */
  --paper-2: #EBEEE7;      /* dipped paper */
  --text: #1B2434;         /* body text on paper */
  --muted: #5A6578;
  --coral: #FF6A5B;        /* cephalopod flash */
  --coral-deep: #E2493A;
  --foam: #E9EDF5;         /* text on ink */
  --foam-dim: #9FACC4;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --measure: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px;
}
.inner { max-width: var(--measure); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--pad); }
.inner.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); }
h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: clamp(28px, 4vw, 52px);
}
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--coral); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.eyebrow.dark { color: var(--coral-deep); }

/* ---------------- hero ---------------- */

.hero {
  background: linear-gradient(180deg, #0A111F 0%, var(--ink) 55%, var(--ink-2) 100%);
  color: var(--foam);
  overflow: hidden;
  position: relative;
}
.bar {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: var(--measure); margin: 0 auto;
  padding: 26px var(--pad) 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.wordmark .lid { color: var(--coral); font-style: normal; }
.wordmark.small { font-size: 18px; }
.bar-email {
  font-family: var(--mono); font-size: 13px;
  color: var(--foam-dim); text-decoration: none;
}
.bar-email:hover { color: var(--foam); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 120px) var(--pad) clamp(40px, 6vh, 80px);
  position: relative;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero h1 em { display: inline-block; margin-top: .08em; }
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--foam-dim);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.solid { background: var(--coral); color: #14100F; }
.button.solid:hover { background: var(--coral-deep); color: var(--paper); }
.button.ghost { border-color: var(--ink-line); color: var(--foam); }
.button.ghost:hover { border-color: var(--foam-dim); }

/* the squid */
.squid-stage { position: relative; z-index: 1; min-height: 300px; }
.ink-bloom {
  position: absolute; inset: -30% -40%;
  background: radial-gradient(closest-side, rgba(58, 90, 154, .28), transparent 70%);
  animation: bloom 9s ease-in-out infinite alternate;
}
.squid { position: relative; width: min(300px, 100%); margin: 0 auto; }
.squid .d {
  stroke: var(--foam);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.squid .eye { stroke-width: 2; }
.squid .pupil { fill: var(--foam); }
.squid-sway { transform-origin: 50% 30%; animation: sway 7s ease-in-out infinite alternate; }
.arms .arm { animation: drift 5.5s ease-in-out infinite alternate; transform-origin: 50% 52%; }
.arms .arm:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
.arms .arm.long { animation-duration: 8s; animation-delay: -4s; }

@keyframes sway  { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes drift { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes bloom { from { opacity: .65; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }

/* draw-in on load */
.squid.draw .d {
  stroke-dashoffset: 1;
  animation: draw 1.4s ease forwards;
}
.squid.draw .d:nth-of-type(2n) { animation-delay: .2s; }
.squid.draw .arms .d { animation-delay: .45s; }
.squid.draw .pupil { opacity: 0; animation: appear .4s ease 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.ticker {
  border-top: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--foam-dim);
  text-align: center;
  padding: 18px var(--pad) 20px;
}

/* ---------------- showcase ---------------- */

.showcase { background: var(--paper); }
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.browser {
  border: 1px solid #D4D9CE;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px -30px rgba(12, 20, 36, .35);
}
.chrome {
  display: flex; align-items: center; gap: 7px;
  background: var(--paper-2);
  border-bottom: 1px solid #D4D9CE;
  padding: 10px 14px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #C9CFC1; }
.address {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-left: 10px;
  background: #fff; border-radius: 6px; padding: 3px 12px;
}
.viewport { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.viewport iframe {
  width: 200%; height: 200%;
  transform: scale(.5); transform-origin: top left;
  border: 0; pointer-events: none;
}
.cover { position: absolute; inset: 0; }
.showcase-copy p { margin-bottom: 18px; font-size: 17.5px; }
.live-note { font-style: italic; color: var(--muted); }
.live-note a { color: var(--coral-deep); font-style: normal; font-family: var(--display); font-weight: 600; text-decoration: none; }
.live-note a:hover { text-decoration: underline; }

/* ---------------- features ---------------- */

.features { background: var(--paper-2); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.feature {
  background: var(--paper);
  border: 1px solid #DCE0D6;
  border-radius: 14px;
  padding: clamp(22px, 2.6vw, 34px);
}
.feature h3 {
  font-size: 21px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 10px;
}
.feature p { color: var(--muted); font-size: 16.5px; }
.feature p em { color: var(--coral-deep); }

/* ---------------- process ---------------- */

.process { background: var(--paper); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n {
  font-family: var(--mono); font-size: 13px; color: var(--coral-deep);
  display: inline-block; margin-bottom: 10px;
}
.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------------- origin ---------------- */

.origin { background: var(--ink); color: var(--foam); }
.origin .eyebrow { color: var(--coral); }
.origin-story {
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.45;
  font-weight: 400;
  margin-bottom: 22px;
}
.signoff {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--foam-dim); margin-top: 8px;
}

/* ---------------- contact ---------------- */

.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-copy p { margin-bottom: 18px; font-size: 17.5px; }
.whisper { font-style: italic; color: var(--muted); }
.alt-email a { color: var(--coral-deep); font-family: var(--display); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 4px; }

#enquiry {
  background: #fff;
  border: 1px solid #DCE0D6;
  border-radius: 14px;
  padding: clamp(22px, 2.6vw, 36px);
}
#enquiry label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
#enquiry input, #enquiry textarea {
  display: block; width: 100%; margin-top: 7px;
  font: 16px/1.5 var(--serif); color: var(--text);
  background: var(--paper);
  border: 1px solid #D4D9CE; border-radius: 8px;
  padding: 11px 13px;
}
#enquiry textarea { resize: vertical; }
#enquiry input:focus, #enquiry textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 12px; font-style: italic; color: var(--coral-deep); }

/* ---------------- footer ---------------- */

footer { background: var(--ink); color: var(--foam-dim); }
.foot-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: baseline;
  padding-top: 34px; padding-bottom: 38px;
  font-family: var(--mono); font-size: 12.5px;
}
footer .wordmark { color: var(--foam); }
footer a { color: var(--foam-dim); text-decoration: none; }
footer a:hover { color: var(--foam); }

/* ---------------- reveals & motion safety ---------------- */

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .squid-sway, .arms .arm, .ink-bloom { animation: none; }
  .squid.draw .d { animation: none; stroke-dashoffset: 0; }
  .squid.draw .pupil { animation: none; opacity: 1; }
  .button { transition: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .squid-stage { order: -1; min-height: 0; }
  .squid { width: 150px; margin: 0 0 6px; }
  .ink-bloom { inset: -60% -60%; }
  .showcase-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .bar-email { display: none; }
}
