/* MK Grains & Commodities: sample 02-port. A bulk carrier at golden hour, then the port at work. */
:root {
  --cream: #F3E8D8;
  --black: #0d0b09;
  --sage: #5E6D55;
  --umber: #3D3A36;
  --gold: #E3A64F;
  --serif: "Caudex", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --bg: var(--cream);
  --ink: #15110c;
  --ink-soft: #4a433a;
  --card: rgba(243, 232, 216, .82);
  --card-line: rgba(61, 58, 54, .16);
  --accent: var(--sage);
}
html[data-theme="dark"] {
  --bg: #17130e;
  --ink: #F3E8D8;
  --ink-soft: #cdbfa9;
  --card: rgba(26, 20, 13, .74);
  --card-line: rgba(243, 232, 216, .14);
  --accent: #b3c2a5;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #17130e;
    --ink: #F3E8D8;
    --ink-soft: #cdbfa9;
    --card: rgba(26, 20, 13, .74);
    --card-line: rgba(243, 232, 216, .14);
    --accent: #b3c2a5;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #1a120b; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink);
  background: transparent; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--cream); color: #15110c; overflow: hidden;
}
html:not(.js) #intro { display: none; }
.intro-glow {
  position: absolute; left: 50%; top: 58%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax;
  border-radius: 50%; transform: scale(0);
  background: radial-gradient(circle, rgba(246, 196, 111, .95) 0%, rgba(232, 160, 74, .55) 22%, rgba(243, 232, 216, 0) 52%);
}
.intro-inner { position: relative; text-align: center; }
.intro-mark {
  font-family: var(--serif); font-style: italic; font-size: clamp(84px, 14vw, 168px); line-height: .9;
  display: flex; justify-content: center; overflow: hidden; padding: 0 .08em .05em;
}
.intro-mark span { display: inline-block; transform: translateY(105%); }
.intro-line { width: min(320px, 60vw); height: 1px; margin: 18px auto 16px; background: rgba(21, 17, 12, .15); overflow: hidden; }
.intro-line i { display: block; height: 100%; background: #15110c; transform: scaleX(0); transform-origin: left; }
.intro-name { font-family: var(--serif); font-size: 18px; letter-spacing: .02em; opacity: 0; }

/* ---------- film stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #1a120b; }
.stage .push { position: absolute; inset: 0; transform-origin: 62% 58%; will-change: transform; }
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 2.4s var(--ease);
  background: #1a120b;
}
.push .layer { transform: none; }
.layer.is-on { opacity: 1; transform: scale(1); }
.push { transition: opacity 1.4s var(--ease); }
.push.is-off { opacity: 0; }
.layer[data-scene="hero"] { object-position: 60% 50%; }
.layer[data-scene="story"] { object-position: 72% 50%; }
.layer[data-scene="tanker"] { object-position: 42% 50%; }

/* shared grade over every clip: warm lift, cream highlights, umber shadows */
.grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(255, 214, 150, .16), rgba(255, 214, 150, 0) 60%),
    linear-gradient(180deg, rgba(243, 222, 186, .10), rgba(80, 48, 20, .18));
  mix-blend-mode: soft-light;
}
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, rgba(20, 12, 5, 0) 45%, rgba(20, 12, 5, .55) 100%);
}
.filmgrain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); mix-blend-mode: screen; }
.motes.is-on { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 22px;
  background: rgba(243, 232, 216, .7);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #15110c;
  box-shadow: 0 10px 40px -18px rgba(40, 20, 0, .45);
  transition: background .4s, color .4s;
}
html[data-theme="dark"] .nav { background: rgba(26, 20, 13, .62); color: var(--cream); border-color: rgba(243, 232, 216, .12); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .nav { background: rgba(26, 20, 13, .62); color: var(--cream); border-color: rgba(243, 232, 216, .12); } }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.wm-mk { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; }
.wm-rest { font-family: var(--serif); font-size: 15px; letter-spacing: .01em; opacity: .85; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { text-decoration: none; font-size: 15px; padding: 9px 14px; border-radius: 999px; transition: background .3s var(--ease); }
.nav nav a:hover { background: rgba(94, 109, 85, .16); }
.nav nav a.nav-cta { background: #15110c; color: var(--cream); }
html[data-theme="dark"] .nav nav a.nav-cta { background: var(--cream); color: #15110c; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .nav nav a.nav-cta { background: var(--cream); color: #15110c; } }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: inherit; background: rgba(94, 109, 85, .14); transition: transform .4s var(--ease), background .3s;
}
.theme-btn:hover { transform: rotate(-25deg); background: rgba(94, 109, 85, .26); }

/* ---------- product rail ---------- */
.rail {
  position: fixed; z-index: 40; left: 50%; bottom: 26px; transform: translateX(-50%);
  list-style: none; margin: 0; padding: 0; display: flex; gap: 28px;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(243, 232, 216, .62);
  text-shadow: 0 1px 10px rgba(30, 15, 0, .7);
  opacity: 0; transition: opacity .8s var(--ease); pointer-events: none;
}
.rail.is-on { opacity: 1; }
.rail li { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: color .5s; }
.rail li::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .6s var(--ease), background .6s; }
.rail li.is-on { color: var(--cream); }
.rail li.is-on::after { width: 46px; background: var(--gold); }

/* ---------- story panels ---------- */
main { position: relative; z-index: 2; }
.panel { position: relative; height: 170vh; }
.panel-hero { height: 280vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center;
  padding: 110px clamp(20px, 5vw, 80px) 48px;
}
.side-right .sticky { justify-content: flex-end; }
.side-left .sticky { justify-content: flex-start; padding-left: clamp(20px, 11vw, 170px); }
.card {
  width: min(470px, 100%); padding: 34px 36px 36px;
  background: var(--card);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--card-line); border-radius: 22px;
  box-shadow: 0 30px 80px -40px rgba(30, 14, 0, .6); color: var(--ink);
  transition: background .4s, color .4s;
}
.wide .card { width: min(560px, 100%); }
.card h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin: 10px 0 16px; text-wrap: balance; }
.card > p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); font-weight: 300; }
.card > p + p { margin-top: 12px; }
.card.product h2 { font-size: clamp(46px, 5.2vw, 72px); font-style: italic; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-grain { background: radial-gradient(circle at 35% 35%, #f3cf86, #c98f3c); }
.dot-seed { background: radial-gradient(circle at 35% 35%, #e3c77c, #9a7a2c); }
.dot-oil { background: radial-gradient(circle at 35% 35%, #ffe08a, #d09118); box-shadow: 0 0 12px rgba(240, 180, 40, .7); }
.big-figure {
  margin-top: 26px !important; padding-top: 20px; border-top: 1px solid var(--card-line);
  display: flex; align-items: center; gap: 16px; font-size: 15px !important; line-height: 1.45 !important;
}
.big-figure span { font-family: var(--serif); font-size: 58px; line-height: 1; color: var(--ink); font-style: italic; }
.svc-list { list-style: none; margin: 22px 0 0; padding: 0; }
.svc-list li { padding: 15px 0 15px 22px; border-top: 1px solid var(--card-line); position: relative; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .85; }
.svc-list h3 { font-size: 23px; line-height: 1.2; }
.svc-list p { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 4px; font-weight: 300; }

/* ---------- hero ---------- */
.panel-hero .sticky { align-items: flex-end; padding-bottom: clamp(56px, 9vh, 110px); }
.hero-copy { max-width: 760px; color: #17110a; text-shadow: 0 0 42px rgba(255, 232, 190, .55); }
.hero-copy .eyebrow { color: #3b2c18; }
.hero-title { font-size: clamp(50px, 5.4vw, 88px); line-height: .98; margin: 14px 0 22px; }
.hero-title em { font-style: italic; color: #6b4310; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.hero-sub { font-size: 18px; line-height: 1.6; max-width: 520px; color: #2c2216; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-late {
  position: absolute; left: clamp(20px, 5vw, 80px); right: clamp(20px, 5vw, 80px); top: 22vh;
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; color: var(--cream);
  max-width: 15ch; opacity: 0; text-shadow: 0 2px 30px rgba(40, 20, 0, .35); text-wrap: balance;
}
.hero-late em { color: #f6d398; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; font-size: 15.5px; font-weight: 500; text-decoration: none;
  transition: background .3s, color .3s; will-change: transform;
}
.btn span { display: inline-block; pointer-events: none; }
.btn-solid { background: var(--cream); color: #15110c; }
.btn-solid:hover { background: #fff6e8; }
.btn-ghost { color: var(--cream); border: 1px solid rgba(243, 232, 216, .5); background: rgba(20, 12, 4, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(243, 232, 216, .14); }
.hero-actions .btn-solid { background: #17110a; color: var(--cream); }
.hero-actions .btn-solid:hover { background: #3a2a14; }
.hero-actions .btn-ghost { color: #17110a; border-color: rgba(23, 17, 10, .3); background: rgba(250, 236, 210, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-actions .btn-ghost:hover { background: rgba(255, 244, 224, .9); }
.scroll-cue {
  position: absolute; right: clamp(20px, 5vw, 80px); bottom: clamp(56px, 9vh, 110px);
  display: flex; align-items: center; gap: 14px; color: rgba(243, 232, 216, .95); text-shadow: 0 1px 12px rgba(30, 15, 0, .6);
  font-family: var(--serif); font-style: italic; font-size: 16px;
}
.scroll-cue i { width: 1px; height: 64px; background: rgba(243, 232, 216, .25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- contact ---------- */
.contact {
  position: relative; z-index: 3; background: var(--bg); color: var(--ink);
  padding: clamp(90px, 14vh, 160px) clamp(20px, 5vw, 80px) clamp(80px, 12vh, 140px);
  border-radius: 36px 36px 0 0; margin-top: -36px; transition: background .4s, color .4s;
}
.contact-inner { max-width: 1180px; margin: 0 auto; }
.contact .eyebrow { color: var(--accent); }
.contact-title { font-size: clamp(38px, 5vw, 76px); line-height: 1.02; margin: 16px 0 56px; max-width: 18ch; text-wrap: balance; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; border-top: 1px solid var(--card-line); padding-top: 34px; }
.contact-grid h3 { font-size: 18px; font-style: italic; color: var(--accent); margin-bottom: 8px; }
.contact-grid p { font-size: 18px; line-height: 1.6; margin-bottom: 22px; }
.contact-grid a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact-grid a:hover { background-size: 100% 1px; }
.contact .btn-solid { background: var(--ink); color: var(--bg); }
.contact .btn-solid:hover { background: var(--sage); color: var(--cream); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 3; background: #0d0b09; color: var(--cream); padding: 56px clamp(20px, 5vw, 80px) 28px; }
.footer-top { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(243, 232, 216, .12); }
.footer-top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-top nav a { text-decoration: none; font-size: 15px; opacity: .78; transition: opacity .3s; }
.footer-top nav a:hover { opacity: 1; }
.wordmark-light { margin-right: 0; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(243, 232, 216, .62);
}
.footer-credit { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-credit img { height: 27px; width: auto; }
.footer-credit a { display: inline-flex; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .nav { top: 10px; padding: 7px 7px 7px 16px; gap: 10px; width: calc(100% - 20px); }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav nav a { font-size: 14px; padding: 8px 14px; }
  .wm-rest { display: none; }
  .theme-btn { width: 36px; height: 36px; }
  .rail { display: none; }
  .panel { height: 150vh; }
  .panel-hero { height: 220vh; }
  .sticky, .side-left .sticky { align-items: flex-end; padding: 90px 14px 22px; }
  .side-right .sticky, .side-left .sticky { justify-content: center; }
  .card { padding: 22px 22px 24px; border-radius: 18px; }
  .card h2 { font-size: 30px; margin: 6px 0 10px; }
  .card.product h2 { font-size: 44px; }
  .card > p { font-size: 15.5px; line-height: 1.55; }
  .big-figure span { font-size: 44px; }
  .services .svc-list { margin-top: 12px; }
  .svc-list li { padding: 10px 0 10px 20px; }
  .svc-list li::before { top: 17px; }
  .svc-list h3 { font-size: 19px; }
  .svc-list p { font-size: 14px; }
  .services > p { display: none; }
  .panel-hero .sticky { align-items: flex-start; padding-top: 76px; padding-bottom: 40px; }
  .hero-copy { padding: 22px 20px 22px; border-radius: 20px; background: rgba(246, 234, 214, .78); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255, 255, 255, .35); text-shadow: none; }
  .hero-title { font-size: 40px; margin: 8px 0 14px; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions { margin-top: 22px; }
  .hero-late { top: 16vh; font-size: 32px; }
  .btn { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
  .scroll-cue { display: none; }
  .contact { border-radius: 26px 26px 0 0; }
  .contact-title { margin-bottom: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 6px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i::after, .filmgrain { animation: none; }
  .layer, .push, .motes { transition: opacity .6s linear; transform: none !important; }
}
