:root {
  --bg: #F6F3EC;
  --bg-alt: #ECE6DA;
  --surface: #FFFFFF;
  --ink: #13282B;
  --ink-soft: #3D4E50;
  --muted: #6B7878;
  --accent: #2C6B66;
  --accent-dark: #1E4E4A;
  --bronze: #96723C;
  --deep: #0F2E31;
  --deep-2: #143A3E;
  --deepest: #0A2326;
  --sand: #CDA86B;
  --sand-light: #E0C796;
  --sea: #6FA9A1;
  --on-deep: #F3EFE6;
  --on-deep-soft: rgba(243, 239, 230, 0.76);
  --on-deep-muted: rgba(243, 239, 230, 0.56);
  --line: #DDD6C8;
  --line-strong: #CFC6B5;
  --line-deep: rgba(243, 239, 230, 0.14);
  --max: 1180px;
  --header-h: 76px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

section[id] { scroll-margin-top: var(--header-h); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--sand);
  color: var(--deep);
  font-weight: 500;
}

.skip-link:focus { top: 12px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.2em;
}

.eyebrow.center { text-align: center; }

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-deep);
}

.logo:hover { color: var(--on-deep); }

.logo-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.logo-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.logo-wave--top { stroke: var(--sand); }
.logo-wave--low { opacity: 0.5; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.logo-sub {
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 46, 49, 0.95);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--on-deep-soft);
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

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

.site-nav .nav-cta {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid rgba(205, 168, 107, 0.6);
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--sand);
  color: var(--deep);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--on-deep);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-sand {
  background: var(--sand);
  color: var(--deep);
  border-color: var(--sand);
}

.btn-sand:hover {
  background: var(--sand-light);
  border-color: var(--sand-light);
  color: var(--deep);
}

.btn-ghost-light {
  background: transparent;
  color: var(--on-deep);
  border-color: rgba(243, 239, 230, 0.45);
}

.btn-ghost-light:hover {
  background: var(--on-deep);
  border-color: var(--on-deep);
  color: var(--deep);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 88% 0%, rgba(44, 107, 102, 0.42) 0%, rgba(44, 107, 102, 0) 70%),
    var(--deep);
  color: var(--on-deep);
  padding: clamp(72px, 10vw, 140px) 0 clamp(190px, 21vw, 290px);
}

.hero-inner { position: relative; z-index: 1; }

.hero .eyebrow { color: var(--sand); }

.hero h1 {
  color: var(--on-deep);
  max-width: 13.5em;
}

.hero h1 em {
  font-style: italic;
  color: var(--sand);
}

.hero .lede {
  color: var(--on-deep-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* --- Swell (animated wave lines) --- */
.swell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(150px, 20vw, 280px);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
}

.swell-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: swell-drift 80s linear infinite;
  will-change: transform;
}

.swell-layer svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  overflow: visible;
}

.swell-layer--a svg { stroke: var(--sand); stroke-width: 1.5px; opacity: 0.75; }
.swell-layer--b svg { stroke: var(--on-deep); stroke-width: 1px; opacity: 0.16; }
.swell-layer--c svg { stroke: var(--sea); stroke-width: 1.25px; opacity: 0.55; }
.swell-layer--d svg { stroke: var(--on-deep); stroke-width: 1px; opacity: 0.11; }
.swell-layer--e svg { stroke: var(--sand); stroke-width: 1px; opacity: 0.35; }

.swell-layer--b { animation-duration: 55s; animation-direction: reverse; }
.swell-layer--c { animation-duration: 100s; }
.swell-layer--d { animation-duration: 45s; animation-direction: reverse; }
.swell-layer--e { animation-duration: 65s; }

@keyframes swell-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.swell--quiet { opacity: 0.5; }

/* --- Clients (logo marquee, carried over from annawebb.com.au) --- */
.clients {
  padding: clamp(56px, 7vw, 90px) 0 clamp(48px, 6vw, 72px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.clients .eyebrow.center { margin-bottom: clamp(36px, 5vw, 56px); }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee + .marquee { margin-top: 14px; }

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.marquee-track--left {
  animation: marquee-left 55s linear infinite;
}

.marquee-track--right {
  animation: marquee-right 55s linear infinite;
}

@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 160px;
  margin-right: 72px;
}

.marquee-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sectors {
  max-width: 40em;
  margin: clamp(32px, 4vw, 44px) auto 0;
  padding: 0 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

/* --- About --- */
.about {
  padding: clamp(72px, 10vw, 130px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.philosophy {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  border-left: 2px solid var(--sand);
  padding: 4px 0 4px 22px;
  margin: 28px 0 0;
}

.about-body { padding-top: 6px; }

.about-body p { font-size: 1.02rem; }

.about-body .about-intro {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

/* --- Why --- */
.why {
  background: var(--deep-2);
  color: var(--on-deep);
  padding: clamp(72px, 10vw, 130px) 0;
}

.why-intro {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.why .eyebrow { color: var(--sand); }
.why h2 { color: var(--on-deep); margin-bottom: 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-deep);
}

.why-item {
  padding: 40px 36px 0;
  border-left: 1px solid var(--line-deep);
}

.why-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.why-item::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sand);
  margin-bottom: 24px;
}

.why-item h3 {
  color: var(--on-deep);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.why-item p {
  color: var(--on-deep-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* --- Section intros --- */
.section-intro {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 64px);
  text-align: center;
}

.section-intro .lede { margin-left: auto; margin-right: auto; }

.section-intro--left {
  margin-left: 0;
  text-align: left;
}

.section-intro--left .lede { margin-left: 0; }

/* --- What we do --- */
.services {
  padding: clamp(72px, 10vw, 130px) 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 36px 28px 40px;
  transition: background 0.25s ease;
}

.service-card:hover { background: var(--surface); }

.service-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
}

.service-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--deep);
}

.service-card--cta:hover { background: var(--deep-2); }

.service-card--cta h3 { color: var(--on-deep); }
.service-card--cta p { color: var(--on-deep-soft); }

.card-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 20px;
  color: var(--sand);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(205, 168, 107, 0.45);
  padding-bottom: 4px;
}

.card-link:hover { color: var(--sand-light); border-color: var(--sand-light); }

/* --- How we work --- */
.approach {
  padding: clamp(72px, 10vw, 130px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.approach-lead {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.formats {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.formats h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.formats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.formats li {
  padding: 7px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-strong);
}

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

.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 34px 0;
  border-top: 1px solid var(--line-strong);
}

.step:first-child { padding-top: 6px; border-top: 0; }

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--bronze);
}

.step h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.step p { margin: 0; }

/* --- Our people --- */
.people {
  padding: clamp(72px, 10vw, 130px) 0;
}

/* auto-fit: three people fill the row; a fourth fits alongside on desktop */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px 32px;
}

.person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--bg-alt);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.6s ease;
}

.person:hover .person-photo img { transform: scale(1.03); }

.person-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  letter-spacing: 0.04em;
  color: var(--bronze);
  background: var(--bg-alt);
}

.person h3 {
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.person-role {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.person-bio {
  font-size: 0.94rem;
  margin: 0;
}

/* --- Contact --- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
  padding: clamp(80px, 11vw, 150px) 0 clamp(150px, 18vw, 240px);
  text-align: center;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.contact .eyebrow { color: var(--sand); }
.contact h2 { color: var(--on-deep); }

.contact .lede {
  color: var(--on-deep-soft);
  margin: 0 auto;
}

.contact-link {
  display: inline-block;
  margin: 40px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.6vw, 2.2rem);
  color: var(--on-deep);
  letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(205, 168, 107, 0.5);
  overflow-wrap: anywhere;
}

.contact-link:hover { color: var(--sand-light); }

.location {
  margin: 8px 0 36px;
  font-size: 0.92rem;
  color: var(--on-deep-muted);
  letter-spacing: 0.03em;
}

/* --- Footer --- */
.site-footer {
  background: var(--deepest);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-deep);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--on-deep-soft);
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--on-deep); }

.acknowledgement {
  max-width: 52em;
  margin: 28px 0;
  font-size: 0.86rem;
  color: var(--on-deep-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--on-deep-muted);
  letter-spacing: 0.03em;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .swell-layer { animation: none; }

  .marquee-track {
    animation: none;
    transform: translate3d(-25%, 0, 0);
  }
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-lead { position: static; }

  .why-grid { grid-template-columns: 1fr; border-top: 0; }

  .why-item,
  .why-item:first-child {
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-deep);
  }

  .why-item + .why-item { margin-top: 32px; }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep);
    border-bottom: 1px solid var(--line-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open { max-height: 420px; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 24px;
  }

  .site-nav li { border-bottom: 1px solid var(--line-deep); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 18px; }
  .site-nav a { display: block; padding: 14px 0; }
  .site-nav .nav-cta { display: block; text-align: center; padding: 13px 18px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .marquee-logo { height: 44px; width: 130px; margin-right: 48px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .people-grid { gap: 32px 18px; }
  .step { grid-template-columns: 56px 1fr; }
  .step-num { font-size: 2.2rem; }
  .logo-name { font-size: 1.4rem; }
  .logo-mark { width: 34px; height: 34px; }
}
