/* Amina Venture Studio design system */

:root {
  --ivory: #F6F1E8;
  --ivory-deep: #EEE6D8;
  --ink: #161416;
  --ink-muted: #5C5760;
  --aubergine: #3F1E3D;
  --aubergine-tint: #5A2F57;
  --orange: #AD4018;
  --line: #D8CFC2;
  --line-on-dark: rgba(246,241,232,.22);

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: 20px;
  --section: 72px;
  --radius: 4px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (min-width: 900px) {
  :root { --gutter: 48px; --section: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 17.5px; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 36em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* Type */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 .5em;
}
.display { font-size: clamp(44px, 9vw, 96px); line-height: .98; }
h1 { font-size: clamp(40px, 7.5vw, 72px); }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.06; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2;  }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 32em; color: var(--ink); }
.small { font-size: 14px; }
.muted { color: var(--ink-muted); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--deep { background: var(--ivory-deep); }
.section--dark { background: var(--aubergine); color: var(--ivory); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(12, 1fr); gap: 32px; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Links and buttons */
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link:hover { border-color: var(--orange); color: var(--orange); }
.link::after { content: "\2192"; margin-left: .35em; display: inline-block; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(3px); }
.section--dark .link { color: var(--ivory); border-color: var(--ivory); }
.section--dark .link:hover { color: #F2B08C; border-color: #F2B08C; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius); border: 1px solid transparent;
  background: var(--aubergine); color: var(--ivory);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--aubergine-tint); }
.btn:active { background: var(--ink); transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn--ivory { background: var(--ivory); color: var(--aubergine); }
.btn--ivory:hover { background: #fff; }
.btn--ivory:active { background: var(--ivory-deep); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 32px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), padding .25s var(--ease);
}
.header.is-scrolled { border-color: var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
@media (min-width: 900px) {
  .header__bar { min-height: 88px; }
  .header.is-scrolled .header__bar { min-height: 68px; }
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark__text { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; line-height: 1;  }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 36px; }
  .nav a { text-decoration: none; color: var(--ink); font-weight: 500; position: relative; padding: 6px 0; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right .25s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
  .nav .btn { min-height: 44px; padding: 10px 20px; margin-left: 8px; color: var(--ivory); }
  .nav .btn::after { display: none; }
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 4px 8px 12px; background: none; border: 0; color: var(--ink); font-weight: 500; cursor: pointer;
}
@media (min-width: 900px) { .menu-btn { display: none; } }
.menu-btn svg { width: 24px; height: 24px; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ivory);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) var(--gutter);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.menu__list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.menu__list a {
  font-family: var(--serif); font-size: clamp(36px, 10vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line);
}
.menu__list a[aria-current="page"] { color: var(--aubergine); }
.menu .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* Footer */
.footer { background: var(--aubergine); color: var(--ivory); padding: 64px 0 40px; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; align-items: start; } }
.footer .wordmark { color: var(--ivory); }
.footer__line { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; margin: 20px 0 0; max-width: 16em;  }
.footer__nav { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .footer__nav { align-items: flex-end; } }
.footer__nav a { text-decoration: none; color: var(--ivory); font-weight: 500; }
.footer__nav a:hover { color: #F2B08C; }
.footer__bottom { border-top: 1px solid var(--line-on-dark); margin-top: 56px; padding-top: 24px; font-size: 14px; color: rgba(246,241,232,.75); }

/* Motif */
.motif { width: 100%; height: auto; }
.motif .m-biz { fill: var(--aubergine); }
.motif .m-tech { fill: var(--orange); }
.motif--outline .m-biz, .motif--outline .m-tech { fill: none; stroke-width: 2; }
.motif--outline .m-biz { stroke: var(--ivory); }
.motif--outline .m-tech { stroke: #F2B08C; }

/* Reveal motion */
.reveal { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.field label, .fieldset legend { font-weight: 500; }
.field__hint { font-size: 14px; color: var(--ink-muted); }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--ivory); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--aubergine); box-shadow: inset 0 0 0 1px var(--aubergine); }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.field__error { display: none; color: var(--orange); font-size: 14px; align-items: flex-start; gap: 6px; }
.field.is-invalid .field__error { display: flex; }
.fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.fieldset legend { padding: 0; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill input:checked + span { background: var(--aubergine); color: var(--ivory); border-color: var(--aubergine); }
.pill input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.pill span:hover { border-color: var(--aubergine); }
.fieldset.is-invalid .pill span { border-color: var(--orange); }
.fieldset.is-invalid .field__error { display: flex; }
.fieldset .field__error { margin-top: 10px; }
.form-note { display: none; padding: 16px 20px; border-left: 3px solid var(--orange); background: var(--ivory); margin-bottom: 28px; }
.form-note.is-visible { display: block; }
.form-note--error { border-color: var(--orange); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(246,241,232,.4); border-top-color: var(--ivory); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Review improvements: readable content, compact identity and keyboard access */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; transform: translateY(-160%); background: var(--aubergine); color: var(--ivory); padding: 12px 20px; }
.skip-link:focus { transform: none; }
.wordmark > .motif { width: 26px; height: 26px; flex: 0 0 26px; }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--aubergine); margin-bottom: 20px; }
:target { scroll-margin-top: 110px; }
.menu { overflow-y: auto; overscroll-behavior: contain; }
.menu__list { flex-shrink: 0; padding: 20px 0; }
.nav { gap: clamp(16px, 2.5vw, 36px); }
.person__portrait { aspect-ratio: auto; min-height: 120px; padding: 24px; }
.profile .person__portrait { aspect-ratio: 1.6; min-height: 180px; }
.person__initials { font-size: clamp(48px, 6vw, 72px); }
.fit-grid { display: grid; gap: 28px; margin-top: 36px; }
.fit-grid article { border-top: 2px solid var(--aubergine); padding-top: 20px; }
.fit-grid p { color: var(--ink-muted); margin-bottom: 0; }
.faq { max-width: 960px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 600; cursor: pointer; padding: 8px 24px 8px 0; }
.faq details p { margin: 12px 0 0; }
.input, .textarea { border-color: #948779; }
@media(min-width: 760px) { .fit-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 599px) { .actions .btn { width: 100%; } .contact__form { padding: 24px 16px; } }

[hidden] { display: none !important; }
@media(min-width:900px) { .nav { gap: clamp(12px,1.5vw,24px); font-size: 15px; } .nav .btn { padding: 10px 14px; margin-left: 0; } }
@media(min-width:900px) and (max-width:1050px) { .header__bar { padding-left: 24px; padding-right: 24px; } }

/* Mobile review: flexible controls, readable dark sections and safe-area spacing. */
.section--dark .lede { color: var(--ivory); }
.wrap > *, .hero__grid > *, .contact > *, .article-grid > * { min-width: 0; }
.fieldset { min-inline-size: 0; }
.pill { max-width: 100%; }
.pill span { max-width: 100%; overflow-wrap: anywhere; }
.input, .textarea, .field, .fieldset { scroll-margin-top: 100px; }
.footer__nav a { min-height: 44px; display: inline-flex; align-items: center; }
.menu { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.menu__top, .menu > .btn { flex-shrink: 0; }
.fallback-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; }
.fallback-nav a { min-height: 44px; display: inline-flex; align-items: center; }
@supports(height: 100dvh) { .menu { height: 100dvh; } }
.header .wordmark, .menu .wordmark { min-height: 44px; }
@media (pointer: coarse) { a, button, input, select, textarea { -webkit-tap-highlight-color: rgba(63,30,61,.12); } }

/* Clear editorial typography without decorative letterforms or ligatures. */
h1, h2, h3, .display, .wordmark__text { font-variant-ligatures: none; }
