/* Noble Group LTD — institutional broker visual system */

@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/LibreCaslonText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/LibreCaslonText-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/EBGaramond-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0E0C09;
  --ink: #EDE6D4;
  --accent: #9B8758;
  --muted: #7A6D52;
  --rule: #262218;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 980px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ——— Layout ——— */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.full { width: 100%; }
.section { padding: clamp(64px, 10vw, 160px) 0; }
.section--tight { padding: clamp(40px, 6vw, 96px) 0; }
.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* ——— Type ——— */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-style: italic; letter-spacing: -0.005em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-style: italic; letter-spacing: -0.005em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
.eyebrow { font-family: var(--ui); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.lede { font-family: var(--body); font-size: clamp(19px, 2vw, 22px); line-height: 1.55; max-width: 580px; }
p { margin: 0 0 1em; }
em { font-style: italic; }

/* ——— Nav ——— */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14,12,9,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); max-width: 1280px; margin: 0 auto; }
.nav__brand { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.nav__brand img { width: 40px; height: 40px; }
.nav__links { display: flex; gap: clamp(12px, 2vw, 28px); }
.nav__links a { font-family: var(--ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); opacity: 0.78; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav__links a.is-active { color: var(--accent); opacity: 1; }
.nav__toggle { display: none; }

/* ——— Hero ——— */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero--half { min-height: 56vh; }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo img,
.hero__photo video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.7); }
/* Ken Burns slow zoom/pan for stills (videos animate themselves) */
.hero__photo img { transform-origin: 50% 50%; animation: kenburns 36s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.2%, 0.8%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo img { animation: none; }
}
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,9,0.35) 0%, rgba(14,12,9,0.85) 78%, rgba(14,12,9,1) 100%); z-index: 1; }
.hero__photo > img,
.hero__photo > video { z-index: 0; position: relative; }
.hero__content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(48px, 8vw, 96px); max-width: 1280px; margin: 0 auto; width: 100%; }
.hero__caption { position: absolute; right: var(--gutter); bottom: 12px; font-family: var(--body); font-style: italic; font-size: 11px; color: var(--accent); z-index: 2; opacity: 0.85; }
.hero__h1 { max-width: 18ch; margin-top: 12px; }
.hero__sub { font-family: var(--body); font-size: clamp(15px, 1.6vw, 17px); margin-top: 18px; max-width: 56ch; color: var(--ink); opacity: 0.85; }
.hero__cta { display: inline-block; margin-top: 28px; font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

/* ——— Figures (full-bleed editorial photo breaks) ——— */
.figure { margin: clamp(48px, 8vw, 96px) 0; }
.figure__img { width: 100%; height: clamp(280px, 50vw, 560px); object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.85); }
.figure__caption { font-family: var(--body); font-style: italic; font-size: 12px; color: var(--accent); padding: 12px var(--gutter) 0; max-width: var(--max); margin: 0 auto; }

/* ——— Numerals (Credentials & reach) ——— */
.numerals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.numeral { padding: 32px clamp(16px, 3vw, 36px); border-right: 1px solid var(--rule); }
.numeral:last-child { border-right: 0; }
.numeral__n { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--ink); }
.numeral__l { font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
@media (max-width: 720px) { .numerals { grid-template-columns: 1fr; } .numeral { border-right: 0; border-bottom: 1px solid var(--rule); } .numeral:last-child { border-bottom: 0; } }

/* ——— Capabilities list ——— */
.caps { border-top: 1px solid var(--rule); }
.caps__row { display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--rule); transition: padding-left .25s; color: inherit; }
.caps__row:hover { padding-left: 8px; }
.caps__num { font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; color: var(--muted); }
.caps__name { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); font-style: italic; }
.caps__desc { font-family: var(--body); font-size: 15px; color: var(--ink); opacity: 0.78; max-width: 56ch; margin-top: 6px; }
.caps__arrow { font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); }
@media (max-width: 720px) { .caps__row { grid-template-columns: 48px 1fr; } .caps__arrow { grid-column: 2; margin-top: 6px; } }

/* ——— Credentials table ——— */
.creds { border-top: 1px solid var(--rule); }
.creds__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.creds__name { font-family: var(--serif); font-style: italic; font-size: 19px; }
.creds__code { font-family: var(--ui); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }
.creds__juris { font-family: var(--body); font-style: italic; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .creds__row { grid-template-columns: 1fr; gap: 4px; } }

/* ——— Strip (regions / markets) ——— */
.strip { padding: 56px var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.strip strong { font-style: normal; font-weight: 400; color: var(--accent); }

/* ——— Inquiry block ——— */
.inquiry { text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.inquiry__h { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 38px); }
.inquiry__sub { font-family: var(--body); font-size: 16px; color: var(--muted); margin-top: 12px; }
.inquiry__link { display: inline-block; margin-top: 32px; font-family: var(--ui); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

/* ——— Form ——— */
.form { max-width: 580px; margin: 0 auto; }
.form__row { margin-bottom: 24px; }
.form__label { display: block; font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form__input, .form__textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-family: var(--body); font-size: 17px; padding: 8px 0; outline: none; transition: border-color .2s; }
.form__input:focus, .form__textarea:focus { border-bottom-color: var(--accent); }
.form__textarea { min-height: 120px; resize: vertical; }
.form__submit { background: transparent; border: 1px solid var(--accent); color: var(--accent); font-family: var(--ui); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; padding: 14px 32px; cursor: pointer; transition: background .2s, color .2s; }
.form__submit:hover { background: var(--accent); color: var(--bg); }

/* ——— Footer ——— */
.foot { border-top: 1px solid var(--rule); padding: 64px var(--gutter) 48px; }
.foot__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto; }
.foot__h { font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot__body { font-family: var(--body); font-size: 14px; line-height: 1.75; color: var(--ink); opacity: 0.85; }
.foot__body a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.foot__body a:hover { border-bottom-color: var(--accent); }
.foot__bottom { max-width: 1280px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-family: var(--ui); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .foot__cols { grid-template-columns: 1fr; gap: 32px; } .foot__bottom { flex-direction: column; gap: 8px; } }

/* ——— Fade-in (paired with noble.js IntersectionObserver) ——— */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ——— Catalog gallery (products hub) ——— */
.cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 48px; }
.cat__card { display: block; color: inherit; }
.cat__img { aspect-ratio: 4/3; overflow: hidden; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat__card:hover .cat__img img { transform: scale(1.02); }
.cat__title { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 18px; }
.cat__meta { font-family: var(--ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 720px) { .cat { grid-template-columns: 1fr; } }

/* ——— Mobile nav (simple disclosure) ——— */
@media (max-width: 720px) {
  .nav__toggle { display: block; background: transparent; border: 0; color: var(--ink); font-family: var(--ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav__links.is-open { max-height: 400px; }
  .nav__links a { padding: 18px var(--gutter); border-bottom: 1px solid var(--rule); }
}
