@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --paper-2: #fffefa;
  --ink: #18211d;
  --muted: #5b6661;
  --green: #08382f;
  --green-deep: #062820;
  --green-soft: #16493f;
  --brass: #b88a4a;
  --blue-grey: #8fa6ad;
  --line: #d8ddd8;
  --mint: #6db8a8;
  --shadow: 0 28px 80px rgba(18, 34, 29, 0.14);
  --serif: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 56, 47, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(8, 56, 47, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 88px 88px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(248, 247, 242, 0.9);
  border-bottom: 1px solid rgba(216, 221, 216, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--green-deep);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 26px;
  height: 3px;
  background: var(--brass);
  transform: translateX(-50%);
}

.brand-text,
.nav-links,
.eyebrow,
.section-kicker {
  text-transform: uppercase;
}

.brand-text {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 58px);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--green);
}

main {
  padding-top: 86px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 86px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding: clamp(42px, 4.2vw, 66px) clamp(28px, 7vw, 118px) clamp(28px, 3.5vw, 44px);
}

.eyebrow,
.section-kicker,
.panel-kicker {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 14px;
  font-size: clamp(3.8rem, 6.8vw, 7.4rem);
  line-height: 0.96;
}

.hero-role {
  max-width: 1120px;
  margin-bottom: 22px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  line-height: 1.08;
}

.hero-summary {
  max-width: 980px;
  color: #35423d;
  font-size: clamp(1.02rem, 1.38vw, 1.24rem);
  line-height: 1.72;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
  margin-top: 18px;
}

.hero-chips span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(8, 56, 47, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 254, 250, 0.68);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--green);
  color: var(--paper-2);
}

.button.secondary {
  background: rgba(255, 254, 250, 0.72);
  color: var(--green);
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: clamp(480px, 50vh, 640px);
  grid-template-columns: 1fr;
  align-content: center;
  overflow: hidden;
  padding: clamp(46px, 5vw, 82px) clamp(28px, 7vw, 118px);
  background: var(--green-deep);
  color: var(--paper-2);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.9;
}

.signal-map {
  position: absolute;
  inset: 50% clamp(30px, 8vw, 120px) auto auto;
  width: min(360px, 30vw);
  aspect-ratio: 1;
  opacity: 0.75;
  transform: translateY(-50%);
}

.ring,
.signal {
  position: absolute;
  border-radius: 50%;
}

.ring {
  inset: 50%;
  border: 1px solid rgba(216, 221, 216, 0.42);
  transform: translate(-50%, -50%);
  animation: breathe 5.8s ease-in-out infinite;
}

.ring-one {
  width: 22%;
  height: 22%;
  border-color: rgba(184, 138, 74, 0.55);
}

.ring-two {
  width: 47%;
  height: 47%;
}

.ring-three {
  width: 74%;
  height: 74%;
  background: rgba(184, 138, 74, 0.08);
}

.signal {
  width: 12px;
  height: 12px;
  background: var(--paper-2);
  box-shadow: 0 0 0 10px rgba(255, 254, 250, 0.06);
  animation: signalFloat 6s ease-in-out infinite;
}

.signal-a {
  top: 26%;
  left: 60%;
  background: var(--brass);
}

.signal-b {
  top: 55%;
  left: 39%;
  background: var(--blue-grey);
  animation-delay: 0.6s;
}

.signal-c {
  top: 46%;
  left: 68%;
  background: var(--mint);
  animation-delay: 1.1s;
}

.signal-d {
  top: 70%;
  left: 55%;
  background: rgba(255, 254, 250, 0.78);
  animation-delay: 1.6s;
}

.panel-kicker {
  position: relative;
  z-index: 1;
  color: var(--brass);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  color: var(--paper-2);
  font-size: clamp(2.25rem, 4.8vw, 5.2rem);
  line-height: 1.08;
}

.ai-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  width: min(1320px, 100%);
  margin-top: clamp(30px, 4vw, 54px);
  border: 1px solid rgba(184, 138, 74, 0.34);
  background: rgba(184, 138, 74, 0.34);
}

.ai-flow div {
  min-height: 154px;
  padding: clamp(20px, 2vw, 30px);
  background: rgba(8, 56, 47, 0.68);
}

.ai-flow span {
  display: block;
  margin-bottom: 18px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.ai-flow strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  line-height: 1.1;
}

.ai-flow p {
  margin: 0;
  color: rgba(255, 254, 250, 0.68);
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-ledger {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1320px, 100%);
  margin: 20px 0 0;
  border: 1px solid rgba(184, 138, 74, 0.36);
  background: rgba(184, 138, 74, 0.36);
}

.profile-ledger div {
  padding: 20px;
  background: rgba(6, 40, 32, 0.88);
}

.profile-ledger dt {
  color: rgba(255, 254, 250, 0.64);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-ledger dd {
  margin: 8px 0 0;
  color: var(--paper-2);
  font-weight: 500;
}

.section {
  padding: clamp(70px, 8vw, 130px) clamp(24px, 6vw, 104px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 980px;
  margin-bottom: clamp(34px, 5vw, 68px);
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 1.05;
}

.profile-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.profile-card,
.capability-card,
.education-list article,
.tools-panel,
.contact-card {
  background: rgba(255, 254, 250, 0.76);
  box-shadow: var(--shadow);
}

.profile-card {
  min-height: 280px;
  padding: clamp(26px, 3vw, 44px);
}

.profile-card h3,
.capability-card h3,
.education-list h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.profile-card p,
.capability-card p,
.education-list p,
.contact-note {
  color: var(--muted);
  font-size: 1rem;
}

.dark-section {
  background: var(--green-deep);
  color: var(--paper-2);
  border-bottom: 0;
}

.dark-section .section-kicker {
  color: var(--brass);
}

.dark-section h2,
.dark-section h3 {
  color: var(--paper-2);
}

.timeline {
  display: grid;
  gap: 22px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.25fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid rgba(184, 138, 74, 0.28);
  background: rgba(255, 254, 250, 0.045);
}

.role-meta p,
.role-meta span,
.capability-card span,
.education-list span {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-body h3 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}

.company {
  color: rgba(255, 254, 250, 0.72);
  font-weight: 500;
}

ul {
  margin: 26px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 12px;
  color: rgba(255, 254, 250, 0.76);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(184, 138, 74, 0.36);
  border-radius: 999px;
  color: inherit;
  font-size: 0.86rem;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-card {
  min-height: 320px;
  padding: clamp(24px, 3vw, 42px);
}

.capability-card span {
  display: block;
  margin-bottom: 34px;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.education-layout .section-heading {
  grid-row: span 2;
}

.education-list {
  display: grid;
  gap: 16px;
}

.education-list article,
.tools-panel {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
}

.tools-panel p {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.large-tags span {
  border-color: rgba(8, 56, 47, 0.22);
  color: var(--green);
}

.contact-section {
  padding-top: clamp(82px, 10vw, 150px);
  padding-bottom: clamp(82px, 10vw, 150px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 780px;
  font-size: clamp(2.6rem, 5.7vw, 5.9rem);
  line-height: 1.04;
  overflow-wrap: break-word;
}

.contact-copy > p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.contact-note {
  max-width: 760px;
  margin-top: 34px;
  padding: 22px 26px;
  border: 1px solid rgba(184, 138, 74, 0.26);
  border-left: 5px solid var(--brass);
  border-radius: 6px;
  background: rgba(255, 254, 250, 0.68);
  color: var(--muted);
  font-size: 1rem;
}

.contact-note span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-note p {
  margin-bottom: 0;
}

.enquiry-form {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(8, 56, 47, 0.14);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.84);
  box-shadow: var(--shadow);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.enquiry-form label {
  display: grid;
  gap: 10px;
}

.enquiry-form label span,
.contact-method legend {
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(8, 56, 47, 0.16);
  border-radius: 6px;
  background: rgba(255, 254, 250, 0.88);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

.enquiry-form input {
  min-height: 56px;
  padding: 0 16px;
}

.enquiry-form textarea {
  min-height: 164px;
  padding: 14px 16px;
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: 2px solid rgba(184, 138, 74, 0.38);
  outline-offset: 2px;
}

.contact-method {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.contact-method legend {
  width: 100%;
  margin-bottom: 2px;
}

.contact-method label,
.consent-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.contact-method input,
.consent-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.consent-line span {
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #8a3a22;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(24px, 6vw, 104px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes signalFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -10px, 0);
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

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

  .hero-panel {
    min-height: 560px;
  }

  .ai-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid,
  .capability-grid,
  .education-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .education-layout .section-heading {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  body {
    background-size: 58px 58px;
  }

  .site-header {
    min-height: 78px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 42px;
    height: 38px;
    font-size: 0.92rem;
  }

  .brand-text {
    display: none;
  }

  main {
    padding-top: 78px;
  }

  .hero-copy,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: clamp(3.25rem, 15.5vw, 4.9rem);
  }

  .hero-role {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .hero-summary {
    font-size: 1.02rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: auto;
    padding: 42px 20px;
  }

  .signal-map {
    inset: 18px -46px auto auto;
    width: 260px;
    opacity: 0.28;
    transform: none;
  }

  .hero-panel h2 {
    font-size: clamp(2rem, 9vw, 3.15rem);
  }

  .ai-flow {
    grid-template-columns: 1fr;
  }

  .ai-flow div {
    min-height: auto;
  }

  .profile-ledger {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.05rem, 9.8vw, 3.35rem);
  }

  .enquiry-form {
    padding: 24px 18px;
  }

  .form-actions {
    display: grid;
  }

  .experience-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
