/* Concept 3, Island Life. Sunlit pictures; the page's colour moves from dawn to night as the day goes.
   Each time of day is a token set; sections stay transparent so the body carries the light. */
:root {
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --step-fig: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --step-time: clamp(4.5rem, 2rem + 11vw, 12rem);

  --m: clamp(16px, 4.4vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --chapter: clamp(104px, 13vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --bg: #dce5e8; --ink: #11242b; --muted: #46595f; --panel: #eef3f4;
  --accent: #0e6f66; --accent-ink: #f4faf8; --scrim: rgba(6, 16, 20, .55);
}
/* the light, chapter by chapter */
html[data-time="dawn"]      { --bg: #dce5e8; --ink: #11242b; --muted: #46595f; --panel: #eef3f4; --accent: #0e6f66; --accent-ink: #f4faf8; }
html[data-time="morning"]   { --bg: #f1ece2; --ink: #1e2b2c; --muted: #535e59; --panel: #faf7f1; --accent: #0e6f66; --accent-ink: #f4faf8; }
html[data-time="midday"]    { --bg: #f7f6f1; --ink: #13262b; --muted: #4d5c5f; --panel: #ffffff; --accent: #0e6f66; --accent-ink: #f4faf8; }
html[data-time="afternoon"] { --bg: #cdebe5; --ink: #0c2a2a; --muted: #3c5754; --panel: #e6f6f2; --accent: #0b5f57; --accent-ink: #f4faf8; }
html[data-time="sunset"]    { --bg: #f0c7a4; --ink: #2b1610; --muted: #5a392c; --panel: #f7dcc5; --accent: #0b5f57; --accent-ink: #f4faf8; }
html[data-time="night"]     { --bg: #0e1b2a; --ink: #e9e6dc; --muted: #a9b3b8; --panel: #18283a; --accent: #74d3c3; --accent-ink: #0b2621; }
html[data-time="tomorrow"]  { --bg: #e2eae6; --ink: #12262a; --muted: #47585a; --panel: #f1f5f3; --accent: #0e6f66; --accent-ink: #f4faf8; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 900ms var(--ease), color 900ms var(--ease);
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
h1, h2, p, dl, dd, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--m); }
.fill { padding: 0 .25em; border: 1px dashed var(--muted); border-radius: 3px; color: var(--muted); }

/* buttons: one shape, square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; border-radius: 0;
  font: 500 var(--step-body)/1 var(--text); white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, transform .15s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn--big { min-height: 60px; padding: 0 34px; }

/* bar */
.bar { position: fixed; z-index: 20; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--m); transition: background-color .4s var(--ease), color .4s; }
.bar a { color: #fff; text-decoration: none; transition: opacity .2s; }
.bar__link { justify-self: end; }
.bar.is-solid { background: var(--bg); }
.bar.is-solid a { color: var(--ink); }
.bar:not(.is-solid) .lens--bar { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bar a:hover { opacity: .75; }
.bar__mark { font: 600 1.25rem/1 var(--display); letter-spacing: -.01em; }

/* the lens switch */
.lens { display: inline-flex; background: var(--panel); }
.lens button {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: 500 var(--step-small)/1 var(--text); cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.lens button:hover { background: var(--bg); }
.lens button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lens--hero { background: rgba(255, 255, 255, .92); }
.lens--hero button { color: #10222a; }
.lens--hero button:hover { background: #fff; }
.lens--hero button[aria-pressed="true"] { background: #10222a; color: #fff; }
html:not(.js) .lens { display: none; }

/* HERO */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: #0e1b2a; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(rgba(6,16,20,0), var(--scrim)); pointer-events: none; } /* taste-skill-ignore: neutral scrim under the text only */
.hero__text { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: clamp(28px, 5vw, 64px); max-width: 1440px; }
.hero h1 { font: 600 clamp(3.25rem, 1.5rem + 6.6vw, 7.5rem)/.95 var(--display); letter-spacing: -.035em; max-width: 11ch; }
.hero__line { margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* chapters */
.ch { padding-top: var(--chapter); }
.ch__time { font: 600 var(--step-time)/.86 var(--display); letter-spacing: -.045em; }
.ch__line { margin-top: 18px; font: 400 var(--step-lead)/1.25 var(--display); letter-spacing: -.01em; max-width: 24ch; }
.ch__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.ch__text { grid-column: 1 / 6; }
.ch__pics { grid-column: 6 / 13; position: relative; padding-bottom: 12%; }
.ch__grid--flip .ch__pics { grid-column: 1 / 8; grid-row: 1; }
.ch__grid--flip .ch__text { grid-column: 9 / 13; grid-row: 1; }

.pic { position: relative; margin: 0; }
.pic img, .pic video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel); }
.pic figcaption, .wide figcaption { font-size: var(--step-small); }
/* captions sit on the picture, on a solid label in the chapter's light */
.pic figcaption { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); margin: 0; padding: 5px 10px; background: var(--bg); color: var(--ink); line-height: 1.35; transition: background-color 900ms var(--ease), color 900ms var(--ease); }
.pic--inset { position: absolute; right: -2%; bottom: 0; width: 46%; }
.pic--inset img, .pic--inset video { aspect-ratio: 4 / 3; outline: 8px solid var(--bg); transition: outline-color 900ms var(--ease); }
.ch__grid--flip .pic--inset { right: auto; left: -2%; }

/* the ledger: one reading at a time */
.ledger { margin-top: 36px; }
.ledger > div { padding-top: 6px; }
.ledger dt { font-size: var(--step-small); color: var(--muted); }
.ledger__fig { font: 600 var(--step-fig)/1 var(--display); letter-spacing: -.03em; color: var(--accent); margin: 6px 0 10px; transition: color 900ms var(--ease); }
.ledger dd:last-child { max-width: 38ch; }
.js .ledger > div { animation: lens-in .5s var(--ease); }
html.js[data-lens="owner"] .ledger [data-for="investor"],
html.js[data-lens="investor"] .ledger [data-for="owner"] { display: none; }
@keyframes lens-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* morning */
.ch__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.ch__head .ch__time { grid-column: 1 / 8; }
.ch__head .ch__line { grid-column: 8 / 13; margin: 0 0 .6em; }
.morning__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gap); margin-top: 56px; align-items: start; }
.morning__a { grid-column: 1 / 9; grid-row: 1; }
.morning__ledger { grid-column: 9 / 13; grid-row: 1; margin: 0; align-self: center; }
.morning__b { grid-column: 1 / 6; grid-row: 2; }
.morning__c { grid-column: 6 / 13; grid-row: 2; align-self: end; }
.morning__b img { aspect-ratio: 4 / 5; }
.morning__c img { aspect-ratio: 16 / 9; }

/* midday */
.wide { position: relative; margin: 0; }
.wide img { width: 100%; height: 78svh; min-height: 420px; object-fit: cover; }
.wide figcaption { position: absolute; right: var(--m); top: 16px; margin: 0; padding: 6px 12px; background: var(--bg); color: var(--ink); transition: background-color 900ms var(--ease), color 900ms var(--ease); }
.wide--tall img { height: 90svh; }
.midday__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gap); margin-top: 64px; align-items: end; }
.midday__grid .ch__text { grid-column: 1 / 7; }
.midday__grid .ledger { grid-column: 8 / 13; margin: 0; }
.midday__pair { grid-column: 1 / 13; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.midday__pair .pic:last-child img { aspect-ratio: 4 / 3; }

/* afternoon */
.afternoon__grid { margin-top: 56px; }
.afternoon__pics .pic--main img { aspect-ratio: 16 / 11; }

/* sunset */
.sunset__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gap); margin-top: 64px; align-items: start; }
.sunset__grid .ch__text { grid-column: 1 / 6; }
.sunset__b { grid-column: 6 / 10; }
.sunset__c { grid-column: 10 / 13; margin-top: 96px; }
.sunset__b img { aspect-ratio: 4 / 5; }
.sunset__c img { aspect-ratio: 3 / 4; }

/* night */
.night__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gap); margin-top: 56px; align-items: start; }
.night__a { grid-column: 1 / 9; }
.night__a img { aspect-ratio: 4 / 3; }
.night__side { grid-column: 9 / 13; }
.night__side .ledger { margin: 0 0 40px; }

/* tomorrow */
.tomorrow__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.tomorrow__head .ch__time { grid-column: 1 / 8; }
.tomorrow__head > div { grid-column: 8 / 13; }
.tomorrow__head .ch__line { margin-top: 0; }
.ledger--wide { margin-top: 20px; }
.board { list-style: none; margin: 64px auto 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
.board > li:nth-child(1) { grid-column: 1 / 8; }
.board > li:nth-child(2) { grid-column: 8 / 13; align-self: end; }
.board > li:nth-child(n+3) { grid-column: span 4; }
.board > li:nth-child(1) img { aspect-ratio: 16 / 10; }
.board > li:nth-child(2) img { aspect-ratio: 4 / 5; }
.board img { aspect-ratio: 4 / 3; }

/* close */
.ch--close { padding-top: clamp(72px, 8vw, 128px); padding-bottom: var(--chapter); }
.close__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.close__grid > div { grid-column: 1 / 8; }
.close__title { font: 600 clamp(3rem, 1.6rem + 5vw, 6.5rem)/.92 var(--display); letter-spacing: -.04em; }
.close__grid .ch__line { margin-bottom: 36px; }
.brokers { grid-column: 8 / 13; display: grid; gap: 28px; }
.brokers dt { font: 600 var(--step-lead)/1.1 var(--display); }
.brokers dd { margin-top: 4px; }
.brokers a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .2s; }
.brokers a:hover { color: var(--accent); }

/* footer */
.foot { background: var(--ink); color: var(--bg); padding: 56px 0 40px; transition: background-color 900ms var(--ease), color 900ms var(--ease); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); font-size: var(--step-small); align-items: start; }
.foot__name { grid-column: 1 / 4; font: 600 var(--step-lead)/1 var(--display); }
.foot__grid p:nth-child(2) { grid-column: 4 / 10; max-width: 60ch; }
.foot__links { grid-column: 10 / 13; display: flex; gap: 20px; justify-content: flex-end; }
.foot a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.foot a:hover { opacity: .75; }

/* entrances: heading, line, then the pictures */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* tablet */
@media (max-width: 1000px) {
  .ch__text, .ch__pics, .ch__grid--flip .ch__pics, .ch__grid--flip .ch__text { grid-column: 1 / -1; grid-row: auto; }
  .ch__pics { margin-top: 48px; }
  .ch__head .ch__time, .ch__head .ch__line, .tomorrow__head .ch__time, .tomorrow__head > div { grid-column: 1 / -1; }
  .ch__head .ch__line, .tomorrow__head > div { margin-top: 18px; }
  .morning__a, .morning__ledger { grid-row: auto; }
  .morning__b, .morning__c { grid-row: auto; }
  .morning__a, .morning__ledger, .night__a, .night__side, .sunset__grid .ch__text, .midday__grid .ch__text, .midday__grid .ledger, .brokers, .close__grid > div { grid-column: 1 / -1; }
  .morning__b { grid-column: 1 / 6; } .morning__c { grid-column: 6 / 13; }
  .sunset__b { grid-column: 1 / 8; } .sunset__c { grid-column: 8 / 13; }
  .brokers { margin-top: 48px; }
  .board > li:nth-child(1), .board > li:nth-child(2) { grid-column: 1 / -1; }
  .board > li:nth-child(n+3) { grid-column: span 6; }
  .board > li:nth-child(5) { grid-column: 1 / -1; }
  .foot__name, .foot__grid p:nth-child(2), .foot__links { grid-column: 1 / -1; justify-content: flex-start; margin-top: 12px; }
}

/* phone */
@media (max-width: 640px) {
  .bar__link { font-size: var(--step-small); }
  .hero { min-height: 600px; }
  .hero::after { height: 80%; }
  .hero__line { margin-top: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .lens--hero { width: 100%; } .lens--hero button { flex: 1; padding: 0 10px; }
  .pic--inset { position: relative; right: auto; width: 70%; margin: -18% 0 0 auto; }
  .ch__grid--flip .pic--inset { left: auto; }
  .ch__pics { padding-bottom: 0; }
  .morning__b, .morning__c, .sunset__b, .sunset__c, .board > li:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .wide img { height: 62svh; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__link { display: none; }
  .bar__mark { font-size: 1.0625rem; }
  .lens--bar button { padding: 0 12px; }
  .wide figcaption { right: 16px; left: 16px; }
}
