/* Portline — black + logo gold (#9b8553) on warm ivory. 8-pt spacing grid. */
:root {
  --ink: #0d0f12;
  --ink-2: #2a2d33;
  --muted: #5d6068;
  --paper: #fdfcf9;
  --paper-2: #f6f2ea;
  --line: #e8e1d4;
  --gold: #9b8553;
  --gold-hi: #b39b66;
  --gold-ink: #6f5e36;
  --white: #fff;
  --radius: 4px;
  --wrap: 1200px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 80px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.7 var(--sans); }
strong, b { font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 16px; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left)); }
.narrow { max-width: 840px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--white); padding: 8px 16px; z-index: 100; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 16px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 680px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 1px solid transparent; font: 600 14px/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .12s; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.section-dark .link-arrow { color: var(--gold-hi); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { height: 48px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 400; font-size: 15px; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { font-weight: 600; font-size: 13px; letter-spacing: .1em; text-decoration: none; padding: 8px; min-width: 40px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.lang:hover { border-color: var(--gold); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after {
  content: ""; position: absolute; left: 12px; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle span:first-child { top: 23px; }
.menu-toggle span:first-child::before { left: 0; top: -8px; }
.menu-toggle span:first-child::after { left: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.menu-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 24px 24px; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { color: var(--gold-ink); border-color: var(--line); }
  .header-actions { margin-left: auto; gap: 8px; }
}

/* hero */
.hero, .page-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-img, .page-hero-img { position: absolute; inset: 0; z-index: -1; }
.hero-img img, .page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,15,18,.86) 0%, rgba(13,15,18,.62) 45%, rgba(13,15,18,.2) 100%); }
.hero-inner { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-block: 96px; }
.hero h1 { max-width: 820px; }
.hero .lead, .page-hero .lead { color: rgba(255,255,255,.88); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold-hi); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.page-hero-inner { padding-block: 128px 80px; }
.page-hero-sm .page-hero-inner { padding-block: 96px 56px; }
.crumb { display: inline-block; color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; margin-bottom: 24px; }
.crumb:hover { color: var(--white); }

/* facts */
.facts { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); }
.facts-list { list-style: none; margin: 0; padding: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 1px solid var(--gold); }
.facts-list strong { font: 500 40px/1 var(--serif); color: var(--gold-hi); }
.facts-list span { color: rgba(255,255,255,.75); font-size: 15px; }
@media (max-width: 720px) { .facts-list { grid-template-columns: 1fr; } }

/* sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-title { margin-bottom: 40px; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--gold-hi); }

/* commodity cards */
.commodities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .commodities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .commodities { grid-template-columns: 1fr; } }
.commodity { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); color: var(--white); text-decoration: none; background: var(--ink); }
@media (max-width: 520px) { .commodity { aspect-ratio: 4 / 3; } }
.commodity picture, .commodity img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.commodity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,15,18,0) 35%, rgba(13,15,18,.85) 100%); }
.commodity:hover img { transform: scale(1.05); }
.commodity-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.commodity-name { font: 500 34px/1.1 var(--serif); }
.commodity-sub { font-size: 14px; color: rgba(255,255,255,.82); padding-right: 32px; }
.commodity .arrow { position: absolute; right: 24px; bottom: 24px; color: var(--gold-hi); font-size: 20px; }

/* split */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text p { color: rgba(255,255,255,.82); }
.split-media img { border-radius: var(--radius); }
@media (max-width: 860px) { .split-inner { grid-template-columns: 1fr; gap: 40px; } }

/* home cta */
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner img { width: 64px; margin-bottom: 24px; }
.cta-inner p { color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.prose p { font-size: 18px; color: var(--ink-2); }
.prose p:first-child { font: 400 26px/1.45 var(--serif); color: var(--ink); }
.about-media img { border-radius: var(--radius); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.values li { border-top: 1px solid var(--gold); padding-top: 24px; }
.values h3 { color: var(--gold-hi); }
.values p { color: rgba(255,255,255,.8); font-size: 15px; margin: 0; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.quote { margin: 0 auto; max-width: 760px; text-align: center; }
.quote p { font: 400 italic clamp(32px, 4vw, 48px)/1.2 var(--serif); }
.quote cite { font-style: normal; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--gold-ink); }

/* product pages */
.products { display: flex; flex-direction: column; gap: 80px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-rev .product-media { order: 2; }
.product-media img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.product-text p { color: var(--ink-2); }
.product-meta { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--gold); color: var(--gold-ink); border-radius: var(--radius); }
.spec-all { text-align: center; margin: 0; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } .product-rev .product-media { order: 0; } .products { gap: 56px; } }
.other-products { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 64px; }
.other-products a { flex: 1 1 160px; min-height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; font: 600 22px/1 var(--serif); }
.other-products a:hover { border-color: var(--gold); color: var(--gold-ink); }

/* more band */
.more-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.more-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.more-inner h2 { margin-bottom: 8px; }
.more-inner p { margin: 0; color: var(--muted); }

/* SOP */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-n { font: 500 40px/1 var(--serif); color: var(--gold); }
.steps h2 { font-size: 28px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .steps li { grid-template-columns: 48px 1fr; gap: 16px; } .step-n { font-size: 32px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } .contact-form { order: -1; } }
.contact-info h2 { font-size: 30px; margin-top: 40px; }
.contact-info h2:first-child { margin-top: 0; }
.mail { font-weight: 600; color: var(--gold-ink); }
.team { list-style: none; margin: 0; padding: 0; }
.team li { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.team span { color: var(--muted); font-size: 15px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.inquiry h2 { font-size: 34px; margin-bottom: 24px; }

/* form — form-design contract: floating label, ≥48px fields, one column */
.field { position: relative; margin-bottom: 16px; }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans); padding: 24px 16px 8px; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 128px; resize: vertical; padding-top: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(155,133,83,.18); }
.field label { position: absolute; left: 17px; top: 28px; transform: translateY(-50%); color: var(--muted); pointer-events: none;
  transition: top .15s ease, font-size .15s ease, transform .15s ease; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 48px); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.filled + label { top: 8px; transform: none; font-size: 12px; color: var(--gold-ink); }
.field .opt { color: var(--muted); font-size: .9em; }
.field-select .chev { position: absolute; right: 16px; top: 28px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field.invalid input, .field.invalid select { border-color: #a3392b; }
.field-error { color: #a3392b; font-size: 14px; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 400; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #a3392b; }
.form-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.btn[aria-busy="true"] { opacity: .8; pointer-events: none; }
.btn[aria-busy="true"] .btn-label::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field-nav { position: fixed; right: 16px; z-index: 60; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.15); cursor: pointer; }
@media (min-width: 900px) and (hover: hover) { .field-nav { display: none !important; } }

/* 404 */
.notfound { text-align: center; }
.notfound img { margin: 0 auto 24px; width: 64px; }
.notfound .lead { margin-inline: auto; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); font-size: 15px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 64px 40px; }
.footer-grid h2 { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 48px; filter: invert(1); opacity: .85; flex: none; }
.footer-brand strong { color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* two-product layout (petroleum only, Oct 2026) */
/* five products: one row on wide screens, a single column of wide tiles on phones */
.commodities-2 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.commodities-2 .commodity { aspect-ratio: 3 / 4; }
.commodities-2 .commodity-name { font-size: 26px; padding-right: 32px; }
@media (max-width: 1100px) { .commodities-2 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .commodities-2 { grid-template-columns: 1fr; } .commodities-2 .commodity { aspect-ratio: 16 / 9; } }

/* inquiry form: two fields per row on wide screens */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* compact inquiry form at the bottom of pages */
.more-band .more-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; padding-block: 64px; }
.more-band .more-text h2 { margin-bottom: 16px; }
.more-mail a { color: var(--gold-ink); font-weight: 600; }
.more-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
@media (max-width: 900px) { .more-band .more-inner { grid-template-columns: 1fr; gap: 24px; } }

/* brighter look (Enes, 7 Oct 2026): former dark bands become light; only the footer stays dark */
.facts { background: var(--paper-2); color: var(--ink); border-top: 0; border-bottom: 1px solid var(--line); }
.facts-list strong { color: var(--gold-ink); }
.facts-list span { color: var(--muted); }
.section-dark { background: var(--paper-2); color: var(--ink); }
.section-dark .eyebrow { color: var(--gold-ink); }
.section-dark .link-arrow { color: var(--gold-ink); }
.split-text p { color: var(--ink-2); }
.values h3 { color: var(--gold-ink); }
.values p { color: var(--ink-2); }
.more-band { background: var(--paper-2); }
.contact-form, .more-form { box-shadow: 0 1px 2px rgba(13,15,18,.04), 0 8px 24px rgba(13,15,18,.05); }
.field input, .field select, .field textarea { background: var(--white); }

/* image credits */
.credits-h1 { color: var(--ink); }
.credits { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.credit { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.credit img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.credit p { margin: 0; font-size: 15px; }
.credit-title { font-weight: 600; }
.credit a { color: var(--gold-ink); }
.credit-mods, .credit-other { color: var(--muted); font-size: 14px; }
.credit-other { margin-top: 24px; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-base a { color: inherit; }
@media (max-width: 560px) { .credit { grid-template-columns: 1fr; } }
.credits-link { font-size: 11px; opacity: .45; text-decoration: none; }
.credits-link:hover { opacity: .8; }

/* language menu (5 languages) */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary span { font-size: 12px; opacity: .7; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 8px 0; min-width: 168px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(13,15,18,.08); }
.langs li a { display: block; padding: 10px 16px; text-decoration: none; font-size: 15px; }
.langs li a:hover { background: var(--paper-2); }
.langs li a[aria-current="true"] { color: var(--gold-ink); font-weight: 600; }
/* Chinese: device CJK fonts; Manrope only for Latin runs */
:lang(zh) body, :lang(zh-Hans) { font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(zh-Hans) .eyebrow, :lang(zh-Hans) .btn { letter-spacing: .08em; }
