/* ===========================================================
   Angel De Leon — Enterprise Security Leader
   Light, editorial, quiet-luxury redesign
   =========================================================== */

:root {
  /* Canvas */
  --bg:        #F4F1EA;   /* warm ivory */
  --bg-2:      #FBF9F4;
  --paper:     #FFFFFF;

  /* Ink */
  --ink:       #1C1814;   /* warm near-black */
  --ink-soft:  #4A443C;
  --muted:     #7C7468;
  --faint:     #A39A8C;

  /* Lines */
  --hairline:        rgba(28, 24, 20, 0.12);
  --hairline-strong: rgba(28, 24, 20, 0.24);

  /* Accent — bronze */
  --accent:    #8A6A36;   /* signature bronze */
  --accent-2:  #6F5226;   /* deep bronze (small labels) */
  --accent-soft: rgba(138, 106, 54, 0.10);

  /* Depth */
  --shadow-sm: 0 2px 10px -4px rgba(28,24,20,0.12);
  --shadow:    0 30px 60px -34px rgba(28,24,20,0.30);
  --shadow-lg: 0 50px 90px -40px rgba(28,24,20,0.38);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(22px, 5.5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-size: clamp(15px, 1.04vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* faint warm texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 50% at 80% -5%, rgba(33,50,79,0.05), transparent 60%),
    radial-gradient(60% 45% at -5% 30%, rgba(180,160,120,0.06), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }

/* tracked label + numeral eyebrow */
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .num { font-family: var(--serif); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--accent); }

.section-head { margin-bottom: clamp(38px, 5vw, 60px); max-width: 760px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.015em;
  margin-top: 22px; color: var(--ink);
}
.section-head .lede { color: var(--ink-soft); margin-top: 18px; font-size: 1.12rem; max-width: 58ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(244,241,234,0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); background: rgba(244,241,234,0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mono {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 0.95rem; font-weight: 500; letter-spacing: -0.02em;
}
.brand .nm { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-weight: 600; color: var(--ink) !important; font-size: 0.88rem !important;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  transition: all .25s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(28,24,20,0.45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); background: rgba(28,24,20,0.03); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.1rem, 8.4vw, 5.6rem);
  line-height: 0.96; letter-spacing: -0.03em;
  margin: 26px 0 0; color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .role {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 26px;
}
.hero .headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4;
  color: var(--ink-soft); max-width: 30ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }

/* gallery-framed portrait */
.portrait {
  position: relative; background: var(--paper); padding: 16px;
  border-radius: 6px; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg); max-width: 440px; margin-inline: auto;
}
.portrait::after {
  content: ""; position: absolute; inset: 16px;
  box-shadow: inset 0 0 0 1px rgba(28,24,20,0.06);
  pointer-events: none;
}
.portrait img { width: 100%; height: auto; border-radius: 2px; }
.portrait .plate {
  position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .hero-copy { max-width: 100%; }
}

/* ---------- Approach (editorial thesis) ---------- */
.approach { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--hairline); }
.approach .statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.28; letter-spacing: -0.012em;
  color: var(--ink); max-width: 24ch;
}
.approach .statement .hl { color: var(--accent); font-style: italic; }
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.approach .body { color: var(--ink-soft); font-size: 1.08rem; }
.approach .body p + p { margin-top: 18px; }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Operating model (how I think) ---------- */
.model { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.tenets { border-top: 1px solid var(--hairline); }
.tenet {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(18px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--hairline);
  transition: background .35s var(--ease);
}
.tenet:hover { background: rgba(28,24,20,0.018); }
.tenet .n { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--faint); }
.tenet h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.012em; color: var(--ink);
}
.tenet p { color: var(--ink-soft); margin-top: 12px; max-width: 60ch; font-size: 1.05rem; }
@media (max-width: 560px) {
  .tenet { grid-template-columns: 1fr; gap: 8px; }
  .tenet .n { font-size: 1.1rem; }
}

/* ---------- Domains (pillars) ---------- */
.domains { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.domain-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.domain {
  flex: 0 1 320px; min-width: 0; max-width: 360px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 30px 28px 32px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
@media (max-width: 540px) { .domain { flex-basis: 100%; max-width: none; } }
.domain:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(138,106,54,0.45); }
.domain .dn {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent-2);
}
.domain h3 { font-family: var(--serif); font-weight: 500; font-size: 1.34rem; letter-spacing: -0.01em; margin: 14px 0 10px; }
.domain p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Impact ---------- */
.impact { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.impact-list { border-top: 1px solid var(--hairline); }
.impact-row {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: baseline;
  padding: 28px 4px; border-bottom: 1px solid var(--hairline);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.impact-row:hover { padding-left: 14px; background: rgba(28,24,20,0.018); }
.impact-row .mk { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); }
.impact-row p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); }

/* ---------- Principles (credo) ---------- */
.principles { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.credo { display: grid; gap: 0; max-width: 880px; }
.credo .line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.32; letter-spacing: -0.012em;
  color: var(--ink); padding: 26px 0; border-bottom: 1px solid var(--hairline);
}
.credo .line:first-child { border-top: 1px solid var(--hairline); }
.credo .line span { color: var(--faint); font-size: 0.55em; vertical-align: middle; margin-right: 16px; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 10vw, 130px); border-top: 1px solid var(--hairline); }
.contact-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 26px;
  padding: clamp(44px, 7vw, 88px); text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -20%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.contact-card h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em;
  position: relative; margin-top: 20px;
}
.contact-card .lede { color: var(--ink-soft); max-width: 52ch; margin: 18px auto 0; font-size: 1.1rem; position: relative; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 36px; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 44px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-meta { color: var(--faint); font-size: 0.85rem; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--muted); transition: color .25s var(--ease); }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 19px; height: 19px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (max-width: 420px) {
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Final polish ---------- */
main section[id] { scroll-margin-top: 92px; }
.hero h1, .section-head h2, .approach .statement, .contact-card h2, .credo .line { text-wrap: balance; }
::selection { background: rgba(138, 106, 54, 0.24); color: var(--ink); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.brand:focus-visible { outline-offset: 5px; }
