/* ============================================================
   Halide Group — working trade house
   real port photography, graphite + white + signal yellow,
   system Helvetica display + monospace ledger details
   ============================================================ */

@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #13161b;                /* graphite */
  --ink-2: #1a1e25;              /* raised dark panel */
  --ink-line: #2e343d;           /* hairline on dark */
  --ink-text: #f2f4f6;           /* text on dark */
  --ink-soft: #9aa4ad;           /* muted text on dark */

  --paper: #fafbfb;
  --paper-tint: #f0f2f3;
  --line: #e1e4e6;
  --text: #16191d;
  --text-soft: #4f5a63;

  --signal: #f5b301;             /* cargo yellow — CTAs & marks only */
  --signal-soft: #f5c542;        /* chart line on dark */
  --signal-hover: #ffc41d;

  --radius: 4px;
  --body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2 { font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

.lede { font-size: 1.1rem; max-width: 34em; }
.section-lede { font-size: 1.08rem; color: var(--text-soft); max-width: 40em; margin-top: 18px; }

.section-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  display: block;
  margin-bottom: 12px;
}
.section-num::before { content: "/ "; color: var(--signal); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 22, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink-text);
  text-decoration: none;
}
.wordmark span { color: var(--ink-soft); font-weight: 400; }

.logo-mark { height: 30px; width: 30px; margin-right: 9px; display: block; }
.wordmark-footer .logo-mark { height: 26px; width: 26px; }

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink-text); }

.nav-cta {
  color: var(--ink) !important;
  background: var(--signal);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--signal-hover); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-text); margin: 6px 0; }

/* ---------- hero (photo) ---------- */

.hero {
  position: relative;
  color: var(--ink-text);
  padding: 110px 0 120px;
  background:
    linear-gradient(100deg,
      rgba(15, 18, 23, 0.95) 0%,
      rgba(15, 18, 23, 0.82) 45%,
      rgba(15, 18, 23, 0.55) 100%),
    url("assets/port.jpg") center 40% / cover no-repeat;
  background-color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero-copy h1 { margin: 22px 0 24px; }
.hero-copy .lede { color: #c6ccd2; }

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

.hero-facts {
  margin-top: 42px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--body);
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--ink-text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); }
.btn-block { width: 100%; }

/* ---------- hero chart panel ---------- */

.hero-chart {
  background: rgba(22, 26, 32, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 22px 22px 16px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-title { font-size: 0.88rem; font-weight: 600; color: var(--ink-text); }

.chart-tag {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.price-chart { width: 100%; height: auto; display: block; }

.gridline { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }

.axis-label { font-family: var(--mono); font-size: 10.5px; fill: #7d8791; }

.vol-bars rect { fill: #8b96a0; opacity: 0.38; }

.peak-line { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; stroke-dasharray: 4 5; }
.peak-label { font-family: var(--mono); font-size: 10.5px; fill: #7d8791; letter-spacing: 0.08em; }

.price-line {
  fill: none;
  stroke: var(--signal-soft);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.anno-dot { fill: var(--signal-soft); stroke: #161a20; stroke-width: 2.5; }
.anno-chip { fill: rgba(245, 197, 66, 0.12); stroke: rgba(245, 197, 66, 0.4); }
.anno-text { font-family: var(--mono); font-size: 12.5px; fill: var(--signal-soft); }

.chart-caption { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); }

/* chart draw-on */
@media (prefers-reduced-motion: no-preference) {
  .price-line {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1300;
    animation: draw 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  }
  .price-area { opacity: 0; animation: fadein 0.9s ease 1.4s forwards; }
  .annotation { opacity: 0; animation: fadein 0.7s ease 1.9s forwards; }
  .vol-bars rect {
    transform-origin: center 340px;
    transform: scaleY(0);
    animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .vol-bars rect:nth-child(odd) { animation-delay: 0.5s; }
  .vol-bars rect:nth-child(even) { animation-delay: 0.7s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }

/* ---------- scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-tint { background: var(--paper-tint); }
.section-head { max-width: 640px; margin-bottom: 56px; }

.section-dark {
  background: var(--ink);
  color: var(--ink-text);
}
.section-dark .section-num { color: var(--ink-soft); }
.section-dark .section-lede { color: var(--ink-soft); }

/* ---------- approach (asymmetric) ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}

.approach-main > h3,
.approach-side > h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.numbered-list { list-style: none; counter-reset: item; }

.numbered-list li {
  counter-increment: item;
  position: relative;
  padding: 26px 0 26px 64px;
  border-top: 1px solid var(--line);
}

.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 30px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.numbered-list strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}

.numbered-list p { color: var(--text-soft); max-width: 34em; }

.approach-side {
  background: var(--paper-tint);
  border-radius: 8px;
  padding: 32px;
}

.tick-list { list-style: none; }

.tick-list li {
  padding: 14px 0 14px 30px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.96rem;
  border-top: 1px solid var(--line);
}
.tick-list li:first-child { border-top: none; padding-top: 0; }
.tick-list li:first-child::before { top: 2px; }

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--signal);
  border-bottom: 3px solid var(--signal);
  transform: rotate(-45deg);
}

.tick-list strong { color: var(--text); }

/* ---------- category list (typographic rows) ---------- */

.category-list { list-style: none; counter-reset: cat; }

.category-list li {
  counter-increment: cat;
  display: grid;
  grid-template-columns: 44px 1fr 1.2fr;
  gap: 24px;
  align-items: baseline;
  padding: 30px 8px;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.category-list li::before {
  content: counter(cat, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.category-list li:last-child { border-bottom: 1px solid var(--line); }
.category-list li:hover { background: rgba(245, 179, 1, 0.06); }

.category-list h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.category-list li:hover h3 { box-shadow: inset 0 -3px 0 var(--signal); }

.category-list p { color: var(--text-soft); font-size: 0.98rem; }

.text-link { color: var(--text); font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px 0 var(--signal); }
.text-link:hover { background: var(--signal); }

/* ---------- why: stat strip + points ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 72px;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--line);
}

.stat { padding: 36px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }

.stat-num {
  display: block;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-num::after { content: ""; display: block; width: 28px; height: 4px; background: var(--signal); margin-top: 14px; }

.stat-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}

.why-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.why-item p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- contact (dark) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact-details { margin-top: 30px; }
.contact-details p { margin-bottom: 8px; }

.contact-label {
  display: inline-block;
  width: 96px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-details a { color: var(--ink-text); font-weight: 600; text-decoration: none; box-shadow: inset 0 -2px 0 var(--signal); }
.contact-details a:hover { color: var(--signal); }

.enquiry-form {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.96rem;
  color: var(--ink-text);
  background: var(--ink);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #5d6873; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}

.hp-field { display: none; }

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

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.wordmark-footer { font-size: 1.05rem; }
.site-footer p { color: var(--ink-soft); font-size: 0.88rem; }
.site-footer a { color: var(--ink-text); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }

/* ---------- thanks page ---------- */

.thanks-wrap {
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--ink-text);
}
.thanks-wrap .container { max-width: 660px; }
.thanks-wrap .lede { color: var(--ink-soft); }

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

@media (max-width: 940px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 48px; }
  .section { padding: 72px 0; }

  .stats-strip { grid-template-columns: 1fr; border-bottom: none; margin-bottom: 52px; }
  .stat { border-left: none; border-bottom: 1px solid var(--line); padding: 24px 0; }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .category-list li { grid-template-columns: 32px 1fr; gap: 8px 16px; padding: 24px 4px; }
  .category-list p { grid-column: 2; }
  .numbered-list li { padding-left: 48px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .approach-side { padding: 24px; }
}
