/* Octos — fluid responsive homepage
   Color direction: deep navy + teal + warm off-white.
   No framework required.
*/

:root {
  --ink: #10212b;
  --ink-2: #19313d;
  --navy: #0b2635;
  --navy-2: #103848;
  --teal: #087f83;
  --teal-dark: #05686b;
  --aqua: #dff3f0;
  --paper: #fffdf8;
  --soft: #f2f5f3;
  --white: #ffffff;
  --muted: #5c6b71;
  --line: #dce4e2;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(12, 38, 49, .10);
  --step--1: clamp(.84rem, .81rem + .12vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.13rem + .55vw, 1.55rem);
  --step-2: clamp(1.55rem, 1.32rem + 1vw, 2.15rem);
  --step-3: clamp(2rem, 1.55rem + 2vw, 3.2rem);
  --step-4: clamp(2.65rem, 1.85rem + 3.6vw, 5rem);
  --space: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --section: clamp(4.25rem, 3rem + 5vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button, input, textarea { font: inherit; }

button { cursor: pointer; }

.container {
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--max));
  margin-inline: auto;
}

.narrow { max-width: 820px; }

.section { padding-block: var(--section); }

.section-soft { background: var(--soft); }

.section-dark {
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 174, 169, .13), transparent 28rem),
    var(--navy);
  color: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

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

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(16, 33, 43, .08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  transform: rotate(45deg);
}

.brand-mark span {
  display: block;
  border-radius: 50% 15% 50% 15%;
  background: var(--teal);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(3),
.brand-mark span:nth-child(6),
.brand-mark span:nth-child(8) { opacity: .55; }

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: .9;
  letter-spacing: .06em;
}

.brand-name small {
  display: block;
  margin-top: .45rem;
  font-size: .54rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a {
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav .nav-cta {
  padding: .65rem 1rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal-dark);
}

.nav-toggle { display: none; }

/* Type */

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }

h2 { font-size: var(--step-3); }

h3 { font-size: var(--step-2); }

p { margin: 0 0 1.15em; }

.eyebrow {
  margin-bottom: .8rem;
  color: var(--teal);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.large-copy {
  font-size: var(--step-1);
  line-height: 1.5;
}

.statement {
  font-weight: 800;
  color: var(--teal-dark);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading > p { color: var(--muted); }

.section-heading.light > p { color: rgba(255,255,255,.72); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 7.5rem);
  background:
    linear-gradient(110deg, var(--paper) 0 58%, var(--aqua) 58% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -15vw;
  width: 36vw;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 127, 131, .18);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
}

.hero h1 span {
  display: block;
  margin-top: .12em;
  color: var(--teal);
}

.hero-lead {
  max-width: 720px;
  margin-top: 1.6rem;
  font-size: var(--step-1);
}

.hero-note {
  max-width: 680px;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--teal);
  color: var(--white);
}

.button-primary:hover { background: var(--teal-dark); }

.button-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.starting-price {
  margin-top: 1rem;
  font-size: .94rem;
}

.hero-panel {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin-bottom: 1.6rem;
  font-size: var(--step-2);
}

.panel-kicker {
  margin-bottom: .4rem;
  color: #8fd7d4;
  font-weight: 800;
}

.managed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  margin-bottom: 1.6rem;
}

.managed-grid span {
  padding: .7rem .8rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  font-size: .92rem;
  font-weight: 750;
}

.hero-panel > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

/* Intro */

.intro { text-align: center; }

.intro h2 { margin-bottom: 1.4rem; }

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.plan-card.featured {
  border-color: rgba(8, 127, 131, .45);
  box-shadow: var(--shadow);
}

.plan-label {
  position: absolute;
  top: 0;
  right: 1.2rem;
  padding: .4rem .7rem;
  border-radius: 0 0 8px 8px;
  background: var(--teal);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-number {
  color: var(--teal);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.plan-card h3 { font-size: 1.7rem; }

.plan-tagline {
  min-height: 3.3em;
  margin-top: .7rem;
  color: var(--muted);
  font-weight: 700;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem;
  margin-block: .4rem 1rem;
  color: var(--muted);
}

.price span {
  color: var(--navy);
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -.05em;
}

.price small {
  flex-basis: 100%;
  font-size: .8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.check-list {
  padding: 0;
  margin: .5rem 0 1.7rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: .5rem 0 .5rem 1.55rem;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.text-link {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.text-link span { margin-left: .25rem; }

.fine-print {
  max-width: 900px;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

/* Split sections */

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
}

.work-type {
  margin-bottom: 2rem;
  color: #8fd7d4;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.work-card h3 { font-size: 1.7rem; }

.work-focus {
  margin-top: .35rem;
  color: #8fd7d4;
  font-weight: 750;
}

.work-card > p:last-of-type { color: rgba(255,255,255,.75); }

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.work-links a {
  color: var(--white);
  font-size: .9rem;
  font-weight: 800;
  text-underline-offset: .25rem;
}

.center {
  margin-top: 2.5rem;
  text-align: center;
}

/* Managed benefit panel */

.benefit-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.benefit-panel span {
  display: block;
  margin-top: 1.2rem;
  color: #8fd7d4;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .15em;
}

.benefit-panel span:first-child { margin-top: 0; }

.benefit-panel h3 {
  margin-block: .2rem .5rem;
  font-size: 1.25rem;
}

.benefit-panel p {
  color: rgba(255,255,255,.68);
  font-size: .93rem;
}

/* About */

.about-strip {
  background: var(--aqua);
}

.brand-line {
  font-size: var(--step-1);
  font-weight: 850;
  color: var(--teal-dark);
}

/* Existing site */

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.callout > div { max-width: 760px; }

.callout h2 { margin-bottom: 1rem; }

/* Contact */

.contact-section {
  background: var(--navy);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.contact-section .statement { color: #8fd7d4; }

.contact-form {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: .84rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: .4rem;
  padding: .8rem .9rem;
  border: 1px solid #c9d4d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 131, .12);
}

.contact-form .button { width: 100%; }

.form-note {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

/* Footer */

.site-footer {
  padding-block: 4rem 1.5rem;
  background: #071b25;
  color: rgba(255,255,255,.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.footer-brand { color: var(--white); }

.footer-brand .brand-name small { color: rgba(255,255,255,.55); }

.footer-grid > div:first-child p {
  max-width: 360px;
  margin-top: 1.2rem;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a,
.footer-grid > div:not(:first-child) p {
  display: block;
  margin: 0 0 .55rem;
  font-size: .9rem;
  text-decoration: none;
}

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
}

.footer-bottom p { margin: 0; }

/* Responsive */

@media (max-width: 920px) {
  .hero {
    background: linear-gradient(180deg, var(--paper) 0 68%, var(--aqua) 68% 100%);
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel { max-width: 620px; }

  .plans { grid-template-columns: 1fr; }

  .plan-tagline { min-height: 0; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-wrap { min-height: 68px; }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    width: 23px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem max(1rem, calc((100vw - var(--max)) / 2));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(16, 33, 43, .08);
  }

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

  .site-nav a { padding: .8rem 1rem; }

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

  .portfolio-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .callout {
    align-items: stretch;
    flex-direction: column;
  }

  .callout .button { align-self: flex-start; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: .35rem; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }

  .managed-grid { grid-template-columns: 1fr 1fr; }

  .button-row .button { width: 100%; }

  .callout .button { width: 100%; }

  .brand-name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Anti-spam form helpers */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.turnstile-wrap {
  margin: .25rem 0 1.15rem;
  min-height: 65px;
}
