/* Ambrosia Investments, site stylesheet */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #F8F5EF;
  --bg-alt: #EFE9DF;
  --ink: #23211E;
  --muted: #645E56;
  --line: rgba(35, 33, 30, .14);
  --copper: #C48054;
  --copper-deep: #97572E;
  --forest: #243029;
  --forest-ink: #E9E4D9;
  --forest-muted: #A9B3A6;
  --sage: #8CA980;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--copper); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--copper-deep); outline-offset: 3px; }

/* Type */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(46px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); max-width: 18ch; }
h3 { font-size: 28px; }
em { font-style: italic; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: block; width: 188px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 6px 0;
  background: linear-gradient(var(--copper), var(--copper)) left bottom / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.nav a:hover { background-size: 100% 1px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: clamp(24px, 6vw, 96px);
  min-height: min(84vh, 820px);
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px);
}
.hero h1 { max-width: 13ch; }
.hero h1 em { color: var(--copper-deep); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; margin: 34px 0 0; }
.hero-mark { color: var(--copper); justify-self: center; width: min(100%, 400px); }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.ring { opacity: 0; transform-origin: 50% 50%; animation: ring-in 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
.ring-1 { animation-delay: .15s; }
.ring-2 { animation-delay: .45s; }
.ring-3 { animation-delay: .75s; }
@keyframes ring-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 44px 0 0; padding: 0; list-style: none;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Sections */
section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head p { margin: 0; color: var(--muted); max-width: 30em; }

/* Approach */
.approach { background: var(--forest); color: var(--forest-ink); }
.approach .eyebrow { color: var(--copper); }
.approach .section-head p { color: var(--forest-muted); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(233, 228, 217, .18); }
.pillars li { padding: 36px 28px 8px 0; }
.pillars li + li { padding-left: 28px; border-left: 1px solid rgba(233, 228, 217, .18); }
.pillars .num { font-family: var(--serif); font-size: 20px; color: var(--copper); display: block; margin-bottom: 26px; }
.pillars h3 { font-size: 27px; margin-bottom: 14px; color: #F4F0E7; }
.pillars p { margin: 0; color: var(--forest-muted); font-size: 16px; }

/* Portfolio */
.portfolio-group + .portfolio-group { margin-top: clamp(56px, 7vw, 88px); }
.group-label {
  font-family: var(--sans);
  margin-bottom: 0 !important;
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin: 0;
}


/* Portfolio logo grid */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
.logos li { border-bottom: 1px solid var(--line); }
.co { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 0 28px; text-decoration: none; }
.co-logo { height: 92px; display: flex; align-items: center; margin-bottom: 18px; }
.co-logo img { max-width: 100%; height: auto; opacity: .9; transition: opacity .3s ease, transform .4s ease; transform-origin: left center; }
.co-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.co-geo { margin-top: auto; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.co-arrow { position: absolute; top: 26px; right: 0; color: var(--copper-deep); font-size: 16px; opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s ease, transform .3s ease; }
.co:hover .co-logo img { opacity: 1; transform: scale(1.04); }
.co:hover .co-arrow, .co:focus-visible .co-arrow { opacity: 1; transform: none; }
.realised .co-logo img { opacity: .62; }
.realised .co:hover .co-logo img { opacity: 1; }

/* Team */
.team { background: var(--bg-alt); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px); list-style: none; margin: 0; padding: 0; }
.person { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 32px; align-items: start; }
.portrait { width: 100%; height: auto; aspect-ratio: 270 / 342; object-fit: cover; background: var(--bg); filter: grayscale(100%) sepia(12%) contrast(1.03); transition: filter .5s ease; }
.person:hover .portrait { filter: none; }
.avatar {
  width: 112px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 34px; color: var(--copper-deep); letter-spacing: .04em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02); }
.person h3 { font-size: 30px; }
.person .role { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-deep); margin: 8px 0 16px; }
.person p { margin: 0; color: var(--muted); font-size: 16px; }
.linkedin {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s ease, color .3s ease;
}
.linkedin svg { width: 16px; height: 16px; }
.linkedin:hover { color: var(--copper-deep); border-color: var(--copper); }

/* Footer */
.site-footer { background: var(--forest); color: var(--forest-muted); padding: 64px 0 40px; font-size: 14px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(233, 228, 217, .16); }
.site-footer .brand { width: 210px; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { color: var(--forest-ink); text-decoration: none; }
.site-footer a:hover { color: var(--copper); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px; }
.site-footer .disclaimer { max-width: 56em; margin: 0; font-size: 13px; }

/* Legal page */
.legal { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(42px, 5.5vw, 64px); margin-bottom: 40px; }
.legal h2 { font-size: 30px; margin: 48px 0 14px; max-width: none; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--copper-deep); }
.todo { background: #F5DCC6; color: var(--ink); padding: 0 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars li:nth-child(n+3) { border-top: 1px solid rgba(233, 228, 217, .18); margin-top: 28px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { height: auto; padding-top: 14px; padding-bottom: 12px; flex-direction: column; gap: 10px; }
  .brand { width: 168px; }
  .nav { gap: 26px; }
  .nav a { font-size: 11px; }
  html { scroll-padding-top: 112px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-mark { order: -1; width: 150px; justify-self: start; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .co { padding: 22px 0 20px; }
  .co-logo { height: 72px; margin-bottom: 10px; }
  .co-logo img { transform: scale(.8); }
  .co:hover .co-logo img { transform: scale(.8); }
  .co-desc { font-size: 14px; }
  .co-arrow { display: none; }
  .pillars li, .pillars li + li { padding: 30px 0 4px; border-left: 0; }
  .pillars li + li { border-top: 1px solid rgba(233, 228, 217, .18); margin-top: 26px; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .portrait { width: 150px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 72px; gap: 32px; }
  .person h3 { font-size: 27px; }
}

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

@media print {
  .site-header, .hero-mark { display: none; }
  .approach, .site-footer { background: none; color: #000; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.legal .back { margin-top: 48px; }
