/* Aytex LLC */
:root {
  --bg: #0a0b0d;
  --bg-2: #101216;
  --bg-3: #16191f;
  --ink: #e7e4dc;
  --muted: #8d9098;
  --line: #2a2e38;
  --gold: #c4a572;
  --gold-2: #d4bc8e;
  --steel: #7a8a9c;
  --white: #f4f1e8;
  --danger: #d45b4a;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --max: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #14110c;
  padding: .6rem 1rem;
  z-index: 1000;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 4.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 11, 13, .86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(42, 46, 56, .85);
}
.header-inner {
  width: min(var(--max), calc(100% - 4.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--white);
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .32em;
  line-height: 1;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: .15rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--white); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .95rem 1.55rem;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: #14110c; }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(196, 165, 114, .35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .25s, opacity .25s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 5rem) 0 6.5rem;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.45) 0%, rgba(10,11,13,.28) 38%, rgba(10,11,13,.94) 100%),
    linear-gradient(90deg, rgba(10,11,13,.72) 0%, rgba(10,11,13,.15) 62%);
}
.hero-content { position: relative; z-index: 1; max-width: 44rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.35rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.6vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
  color: var(--white);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-2);
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 2.4rem;
  line-height: 1.75;
}
.hero .lead { color: #c6c3bb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Reveals: only hide when JS is available */
.js .reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in,
.js.no-reveal .reveal {
  opacity: 1;
  transform: none;
}

section { padding: 7.5rem 0; }
.section-kicker {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .85rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.05rem, 3.5vw, 3.05rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  color: var(--white);
  letter-spacing: -.01em;
}
.section-head { margin-bottom: 3.5rem; max-width: 36rem; }
.section-head p { margin: 0; color: var(--muted); }

/* Approach */
#approach { background: var(--bg-2); }
.approach-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 5rem;
  align-items: center;
}
.approach-photo { overflow: hidden; }
.approach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
  aspect-ratio: 4 / 5;
  filter: saturate(.88);
}
.approach-copy .intro {
  margin: 0 0 2.6rem;
  color: var(--muted);
  max-width: 34rem;
}
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.principles li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { padding-bottom: 0; }
.principle-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1.4;
  padding-top: .1rem;
}
.principles h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 .4rem;
  color: var(--white);
}
.principles p { margin: 0; color: var(--muted); }

/* Focus */
#focus { background: var(--bg); }
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}
.focus-card {
  border: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.focus-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.focus-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.86);
  transition: transform .9s var(--ease);
}
.focus-card .thumb img.pos-lower { object-position: center 70%; }
.focus-card:hover .thumb img { transform: scale(1.035); }
.focus-body { padding: 1.55rem 1.55rem 1.75rem; }
.focus-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 .3rem;
}
.focus-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 .45rem;
  color: var(--white);
}
.focus-body p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Contact */
#contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 5rem;
  align-items: start;
}
.contact-copy > p { color: var(--muted); max-width: 28rem; }
.contact-email {
  display: inline-block;
  margin: 1.6rem 0 .35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.01em;
  border-bottom: 1px solid rgba(196, 165, 114, .45);
  line-height: 1.2;
}
.contact-email:hover,
.contact-email:focus-visible { color: var(--gold-2); border-bottom-color: var(--gold); }
.contact-place {
  margin: .85rem 0 0;
  font-size: .92rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.form {
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--line);
  padding: 2.15rem 2.15rem 2rem;
  background: var(--bg);
}
.form-row { display: grid; gap: .4rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--steel);
}
.form .optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.form input, .form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: .65rem 0 .7rem;
  color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form .hint { margin: .15rem 0 0; font-size: .84rem; color: var(--muted); }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.is-error { color: var(--danger); }
.form .btn { justify-self: start; margin-top: .25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.15rem;
  background: var(--bg);
}
.footer-inner {
  width: min(var(--max), calc(100% - 4.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 2.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand svg { width: 22px; height: 22px; }
.footer-brand span {
  font-family: var(--font-display);
  letter-spacing: .28em;
  font-weight: 600;
  font-size: .92rem;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.6rem;
  color: var(--muted);
  font-size: .88rem;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer-links a:hover { border-color: var(--gold); color: var(--gold-2); }
.footer-copy { margin: 0; color: var(--muted); font-size: .84rem; }

@media (max-width: 900px) {
  .wrap, .header-inner, .footer-inner { width: min(var(--max), calc(100% - 2rem)); }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 11, 13, .98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { font-size: .8rem; }
  .approach-grid, .focus-grid, .contact-grid, .form-row.two { grid-template-columns: 1fr; }
  .approach-grid { gap: 2.4rem; }
  .contact-grid { gap: 2.6rem; }
  .approach-photo img { aspect-ratio: 16 / 10; }
  section { padding: 4.25rem 0; }
  .hero { align-items: flex-end; padding: calc(var(--header-h) + 3.5rem) 0 4.25rem; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
  .lead { margin-bottom: 1.8rem; }
  .section-head { margin-bottom: 2.2rem; }
  .form { padding: 1.4rem 1.25rem 1.35rem; }
  .principles li { grid-template-columns: 2.6rem 1fr; padding: 1.2rem 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .7rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .focus-grid { gap: 1rem; }
}
