/* ============================================================
   ATTIA GLOBAL HOLDINGS — Institutional stylesheet v2
   Palette (warm, low-glare, within black/white/gold language):
     Ink   #14120E   warm near-black
     Coal  #1B1813   hero/footer surface
     Paper #FAF8F3   warm white
     Bone  #F2EFE7   section tint
     Gold  #C8A951   accent
     Bronze#A6893E   readable gold on light
     Stone #6F6A5F   secondary text
   Type: Marcellus (display) · Jost (body)
   Motion: cubic-bezier(0.22,1,0.36,1), long + subtle
   ============================================================ */

:root {
  --ink: #14120e;
  --coal: #1b1813;
  --paper: #faf8f3;
  --bone: #f2efe7;
  --gold: #c8a951;
  --bronze: #a6893e;
  --stone: #6f6a5f;
  --hairline: #e4dfd2;
  --serif: "Marcellus", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --pad: clamp(22px, 5vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16.5px;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Page transitions ---------- */
#veil {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  opacity: 1;
  pointer-events: none;
  animation: veilOut 0.55s var(--ease) 0.05s forwards;
  transition: opacity 0.4s var(--ease);
}
@keyframes veilOut { to { opacity: 0; } }
main, .hero { animation: pageIn 0.8s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-bottom: 24px;
}
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.16; letter-spacing: 0.01em; }

.display { font-size: clamp(38px, 5.6vw, 70px); }
.title { font-size: clamp(28px, 3.6vw, 44px); }
.lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--stone);
  line-height: 1.9;
  letter-spacing: 0.015em;
}
.dark .lede, .hero .lede { color: rgba(250, 248, 243, 0.62); }

/* ---------- Guilloché hairline ---------- */
.guilloche {
  height: 14px;
  animation: guillocheDrift 60s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14' viewBox='0 0 56 14'%3E%3Cpath d='M0 7 Q7 0 14 7 T28 7 T42 7 T56 7' fill='none' stroke='%23c8a951' stroke-width='0.75' opacity='0.5'/%3E%3Cpath d='M0 7 Q7 14 14 7 T28 7 T42 7 T56 7' fill='none' stroke='%23c8a951' stroke-width='0.75' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-color: var(--paper);
}
@keyframes guillocheDrift { from { background-position-x: 0; } to { background-position-x: 560px; } }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  transition: height 0.5s var(--ease);
}
header { transition: box-shadow 0.5s var(--ease); }
header.scrolled .nav { height: 68px; }
header.scrolled { box-shadow: 0 6px 24px rgba(20, 18, 14, 0.05); }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { height: 30px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
nav.links { display: flex; gap: 40px; align-items: center; }
nav.links a {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  padding: 7px 0;
  position: relative;
}
nav.links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--bronze);
  transition: right 0.5s var(--ease);
}
nav.links a:hover::after, nav.links a.active::after { right: 0; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 880px) {
  .nav { height: 72px; }
  header.scrolled .nav { height: 62px; }
  nav.links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  nav.links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: all;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s;
  }
  nav.links a { padding: 15px var(--pad); width: 100%; }
  nav.links a::after { display: none; }
  nav.links a.active { color: var(--bronze); }
  .menu-btn { display: block; }
  .brand-name { font-size: 14px; }
  .brand-mark { height: 26px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 560px at 88% -12%, rgba(200, 169, 81, 0.10), transparent 60%),
    radial-gradient(900px 480px at -6% 112%, rgba(200, 169, 81, 0.05), transparent 58%),
    var(--coal);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: clamp(320px, 44vw, 640px);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { padding: clamp(84px, 11vw, 156px) 0 clamp(76px, 10vw, 140px); max-width: 880px; }
.hero .rule { width: 68px; height: 1px; background: var(--gold); margin: 38px 0; transform-origin: left; }
.hero-home { min-height: 78vh; min-height: 78svh; display: flex; align-items: center; }
@media (max-width: 640px) {
  .hero-home { min-height: 88svh; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .btn { padding: 15px 26px; font-size: 11px; }
}

/* hero load sequence */
.hero-seq > * { opacity: 0; transform: translateY(18px); animation: rise 1.2s var(--ease) forwards; }
.hero-seq > *:nth-child(1) { animation-delay: 0.10s; }
.hero-seq > *:nth-child(2) { animation-delay: 0.22s; }
.hero-seq > *:nth-child(3) { animation-delay: 0.34s; }
.hero-seq > *:nth-child(4) { animation-delay: 0.46s; }
.hero-seq > *:nth-child(5) { animation-delay: 0.58s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .rule.hero-rule { animation: ruleGrow 1.4s var(--ease) 0.4s both; }
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sector ticker ---------- */
.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  overflow: hidden;
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: glide 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
}
.ticker span::after { content: "·"; color: var(--gold); font-size: 16px; }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: clamp(72px, 9.5vw, 132px) 0; }
section.bone { background: var(--bone); }
section.dark { background: var(--coal); color: var(--paper); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.prose { color: #35322b; }
.prose p + p { margin-top: 1.4em; }
.dark .prose { color: rgba(250, 248, 243, 0.75); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4.5vw, 64px);
  margin-top: clamp(48px, 6vw, 76px);
}
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }
.pillar { border-top: 1px solid var(--bronze); padding-top: 26px; }
.pillar h3 { font-size: 25px; margin: 14px 0 14px; }
.pillar p { color: var(--stone); font-size: 15.5px; }
.pillar .num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--bronze);
}

/* ---------- Portfolio index (home) ---------- */
.index-list { border-top: 1px solid var(--ink); margin-top: clamp(36px, 5vw, 56px); }
.index-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.5s var(--ease);
}
@media (hover: hover) { .index-row:hover { padding-left: 14px; } }
.index-row .name { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.2; }
.index-row .tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: right;
  transition: color 0.4s var(--ease);
  flex-shrink: 0;
}
.index-row:hover .tag { color: var(--bronze); }
@media (max-width: 640px) {
  .index-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .index-row .tag { text-align: left; }
}

/* ---------- Portfolio grid (portfolio page) ---------- */
.folio-group { margin-top: clamp(48px, 7vw, 84px); }
.folio-group:first-of-type { margin-top: clamp(28px, 4vw, 44px); }
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.group-head h2 { font-size: clamp(25px, 3vw, 34px); }
.group-head .note {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}
.folio { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .folio { grid-template-columns: 1fr; } }
.folio-item {
  padding: clamp(28px, 3.6vw, 44px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 9px;
}
.folio > .folio-item:nth-child(odd) { padding-right: clamp(24px, 4vw, 64px); }
.folio > .folio-item:nth-child(even) { padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid var(--hairline); }
@media (max-width: 720px) {
  .folio > .folio-item:nth-child(odd) { padding-right: 0; }
  .folio > .folio-item:nth-child(even) { padding-left: 0; border-left: none; }
}
.folio-item .sector {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}
.folio-item h3 { font-size: clamp(23px, 2.5vw, 30px); }
.folio-item p { color: var(--stone); font-size: 15.5px; max-width: 46ch; }
.folio-item .meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #46423a;
  margin-top: 4px;
}

/* ---------- Approach list ---------- */
.approach-list { border-top: 1px solid var(--ink); margin-top: clamp(38px, 5vw, 60px); }
.approach-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(34px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 820px) { .approach-row { grid-template-columns: 1fr; gap: 12px; } }
.approach-row .roman {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--bronze);
  letter-spacing: 0.1em;
}
.approach-row h3 { font-size: clamp(23px, 2.5vw, 30px); }
.approach-row p { color: var(--stone); }

/* ---------- Offices ---------- */
.offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 64px);
}
@media (max-width: 820px) { .offices { grid-template-columns: 1fr; } }
.office { border-top: 1px solid var(--bronze); padding-top: 24px; }
.dark .office { border-top-color: var(--gold); }
.office .city { font-family: var(--serif); font-size: 26px; margin-bottom: 4px; }
.office .role {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}
.dark .office .role { color: var(--gold); }
.office address { font-style: normal; color: var(--stone); font-size: 15.5px; line-height: 1.85; }
.dark .office address { color: rgba(250, 248, 243, 0.58); }

/* ---------- Statement band ---------- */
.statement { text-align: center; max-width: 920px; margin: 0 auto; }
.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 42px);
  line-height: 1.4;
}
.statement .attr {
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- CTA ---------- */
.cta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 46px;
  margin-top: clamp(48px, 7vw, 80px);
}
.dark .cta-line { border-top-color: rgba(250, 248, 243, 0.14); }

.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 17px 36px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold); color: var(--coal); }
.btn.light { border-color: rgba(250, 248, 243, 0.75); color: var(--paper); }
.btn.light:hover { background: var(--paper); color: var(--coal); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 2px;
  border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
footer {
  background: var(--coal);
  color: rgba(250, 248, 243, 0.58);
  padding: clamp(56px, 8vw, 96px) 0 40px;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 90px);
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(250, 248, 243, 0.1);
}
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } }
.foot-logo { width: 180px; margin-bottom: 22px; }
.foot-tag { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250, 248, 243, 0.45); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-cols h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.foot-cols a, .foot-cols span { display: block; font-size: 14.5px; padding: 5px 0; color: rgba(250, 248, 243, 0.6); transition: color 0.4s var(--ease); }
.foot-cols a:hover { color: var(--paper); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 243, 0.34);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-seq > *, main, .hero { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .ticker-track, .guilloche { animation: none; }
  #veil { display: none; }
  nav.links { transition: none; }
}

/* ---------- Legal / long-form pages ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(21px, 2.2vw, 27px); margin: 2.4em 0 0.7em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: #35322b; font-size: 15.5px; }
.legal ul { padding-left: 1.3em; margin: 0.8em 0; }
.legal li { margin: 0.45em 0; }
.legal .updated {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 34px;
  display: block;
}

/* ---------- Newsroom ---------- */
.press-item {
  border-top: 1px solid var(--ink);
  padding: clamp(30px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 12px;
}
.press-item .outlet {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}
.press-item h3 { font-size: clamp(24px, 2.8vw, 34px); max-width: 26ch; }
.press-item p { color: var(--stone); max-width: 62ch; }
.press-item .read {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 3px;
  width: max-content;
  transition: color 0.4s var(--ease);
}
.press-item .read:hover { color: var(--bronze); }

/* ---------- 404 ---------- */
.notfound-code {
  font-family: var(--serif);
  font-size: clamp(90px, 16vw, 180px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.9;
}

/* ---------- Founder page ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }
.portrait {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(560px 420px at 78% 8%, rgba(200,169,81,0.14), transparent 62%),
    var(--coal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 860px) { .portrait { position: static; max-width: 440px; } }
.portrait img.mark { width: 56%; opacity: 0.92; }
.portrait img.photo { width: 100%; height: 100%; object-fit: cover; }
.portrait-caption {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}
.founder-name { font-size: clamp(34px, 4.4vw, 56px); }
.founder-role {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 14px 0 30px;
}
.venture-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 720px) { .venture-cards { grid-template-columns: 1fr; } }
.venture { border-top: 1px solid var(--bronze); padding-top: 24px; }
.venture h3 { font-size: 26px; margin-bottom: 12px; }
.venture .v-tag {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-bottom: 12px;
}
.venture p { color: var(--stone); font-size: 15.5px; }
.venture a.read {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 3px;
  transition: color 0.4s var(--ease);
}
.venture a.read:hover { color: var(--bronze); }
