/* P. H. Jain Group — v2 */
:root {
  --night: #0B1628; --navy: #12213A; --navy-2: #1A2F52;
  --bg: #F7F3EA; --bg-2: #EFE8DA; --surface: #FFFFFF;
  --ink: #0F1A2C; --muted: #5A6374; --line: #E0D6C2;
  --gold: #C5A25B; --gold-2: #E2C78E; --gold-ink: #86662A;
  --on-dark: #F7F3EA; --on-dark-muted: #AEB7C6; --dark-line: rgba(226,199,142,.24);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px; --gutter: clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0E1A2E; --bg-2: #122038; --surface: #16253F; --ink: #EDE7DA; --muted: #A9B3C4; --line: #263656; --gold-ink: #D9BC7E; }
}
:root[data-theme="dark"] { --bg: #0E1A2E; --bg-2: #122038; --surface: #16253F; --ink: #EDE7DA; --muted: #A9B3C4; --line: #263656; --gold-ink: #D9BC7E; }

*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: calc(env(safe-area-inset-top, 0px) + .5rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 44ch; }
.gold-rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.5rem; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-ink); margin-bottom: .6rem; }
.dark .kicker, .hero .kicker { color: var(--gold-2); }
.place { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.dark .place, .hero .place, .on-img .place { color: var(--gold-2); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: .95rem 1.6rem; text-decoration: none; border: 1px solid var(--gold); background: var(--gold); color: var(--night); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.line { background: transparent; color: var(--ink); border-color: currentColor; }
.dark .btn.line, .hero .btn.line, .on-img .btn.line { color: var(--on-dark); }
.btn.line:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.more { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: var(--gold-ink); }

/* Header */
.site-header { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 30; color: var(--on-dark); }
.site-header.solid { position: sticky; top: 0; background: var(--night); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.5rem; }
.brand img { height: 52px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .5rem .8rem; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--on-dark); opacity: .88; }
.nav a:hover { opacity: 1; color: var(--gold-2); }
.nav a[aria-current="page"] { color: var(--gold-2); opacity: 1; }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .brand img { height: 42px; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--dark-line); color: var(--on-dark); font: 600 .9rem var(--sans); padding: .55rem .95rem; cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); display: none; border-top: 1px solid var(--dark-line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1.25rem; }
  .nav a { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--dark-line); }
}

/* Hero (home) */
.hero { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 40%, rgba(197,162,91,.16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: 9rem; padding-bottom: 5rem; min-height: min(100vh, 980px); }
.hero h1 { color: var(--on-dark); }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.hero .lead { color: var(--on-dark-muted); }
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero-visual .frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); }
.hero-visual img { position: relative; width: 100%; aspect-ratio: 540 / 768; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-tag { position: absolute; left: -2.5rem; bottom: 2.5rem; background: var(--bg); color: var(--ink); padding: 1.1rem 1.4rem; min-width: 15rem; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero-tag strong { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.hero-tag span { display: block; font-size: .88rem; color: var(--muted); }
.hero-tag .place { color: var(--gold-ink); margin-top: .35rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 7.5rem; min-height: 0; }
  .hero-visual { justify-self: start; max-width: 360px; margin: 1rem 0 1.5rem; }
  .hero-tag { left: auto; right: -1rem; bottom: 1.5rem; min-width: 0; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; color: var(--on-dark); background: var(--night); min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,40,.75) 0%, rgba(11,22,40,.35) 45%, rgba(11,22,40,.92) 100%); }
.page-hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 8rem; padding-bottom: 3.5rem; }
.page-hero h1 { color: var(--on-dark); margin-bottom: .2em; }
.page-hero .lead { color: var(--on-dark-muted); margin: 0; }
.page-hero.art svg { position: absolute; right: -5%; top: 0; height: 100%; width: auto; opacity: .55; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section.tight { padding-top: clamp(3rem, 5vw, 4rem); }
.dark { background: var(--night); color: var(--on-dark); }
.dark h2, .dark h3 { color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }
.alt { background: var(--bg-2); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head h2 { margin: 0; max-width: 16ch; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats div { padding: 2.5rem 1.5rem; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 600; line-height: 1; color: var(--gold-ink); }
.stats dt { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
.stats div { display: flex; flex-direction: column-reverse; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } .stats div { padding: 1.75rem 1rem; } }

/* Business cards */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.biz-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: var(--on-dark); text-decoration: none; background: var(--navy); }
.biz-card > img, .biz-card > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.biz-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,40,0) 35%, rgba(11,22,40,.92) 100%); }
.biz-card:hover > img, .biz-card:hover > svg { transform: scale(1.04); }
.biz-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; z-index: 1; }
.biz-body h3 { color: var(--on-dark); font-size: 2.1rem; margin-bottom: .25rem; }
.biz-body p { color: var(--on-dark-muted); font-size: .95rem; margin: 0 0 1rem; }
.biz-body .more { border-color: var(--gold); color: var(--on-dark); }
.biz-logos { position: absolute; inset: 0 0 38% 0; z-index: 1; display: grid; place-content: center; gap: 1rem; }
.biz-logos span { background: #fff; padding: .9rem 1.4rem; display: grid; place-items: center; width: 220px; height: 72px; }
.biz-logos img { max-height: 40px; width: auto; }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } .biz-card { aspect-ratio: 4 / 3; } }

/* Vyom feature */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feature-img { position: relative; }
.feature-img img { width: 100%; aspect-ratio: 540 / 700; object-fit: cover; object-position: top; }
.feature-img .frame { position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold); z-index: -0; pointer-events: none; }
.vyom-logo { width: min(320px, 80%); margin-bottom: 2.5rem; }
.spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 2rem 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.spec div { padding: 1.1rem 2.2rem 1.1rem 0; }
.spec div + div { padding-left: 2.2rem; border-left: 1px solid var(--dark-line); }
.spec dt { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.spec dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--on-dark); line-height: 1.1; }
.also { display: flex; gap: 1.25rem; align-items: center; margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--dark-line); }
.also svg { width: 92px; height: 92px; flex: none; }
.also h3 { font-size: 1.45rem; margin: 0 0 .2rem; }
.also p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-img { max-width: 440px; } .spec { grid-template-columns: 1fr 1fr; } .spec div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--dark-line); } }

/* Project gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 1rem; }
.tile { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); }
.tile > img, .tile > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover > img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,22,40,.88)); }
.tile figcaption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; }
.tile figcaption strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.tile figcaption span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.g-a { grid-column: span 7; grid-row: span 2; } .g-b { grid-column: span 5; grid-row: span 2; }
.g-c, .g-d, .g-e { grid-column: span 4; }
figure { margin: 0; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } .g-a, .g-b { grid-column: span 2; grid-row: span 1; } .g-b { grid-row: span 2; } .g-c, .g-d { grid-column: span 1; } .g-e { grid-column: span 2; } }

/* Logo wall */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos a, .logos div.l { background: #fff; min-height: 150px; display: grid; place-items: center; padding: 1.5rem; text-decoration: none; color: #0F1A2C; transition: background .2s; text-align: center; }
.logos a:hover { background: #FBF8F1; }
.logos img { max-height: 70px; max-width: 80%; width: auto; }
.logos .word { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.logos .word small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #86662A; font-weight: 600; margin-top: .45rem; }
@media (max-width: 860px) { .logos { grid-template-columns: 1fr 1fr; } .logos a, .logos div.l { min-height: 120px; } }

/* Image CTA */
.on-img { position: relative; color: var(--on-dark); background: var(--night); overflow: hidden; }
.on-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.on-img .wrap { position: relative; }
.on-img h2 { color: var(--on-dark); }
.on-img p { color: var(--on-dark-muted); }
.cta-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.cta-row .actions { margin-top: 0; }

/* Project entries (real estate page) */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.project .pimg { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); margin-bottom: 1.25rem; }
.project .pimg img, .project .pimg svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover .pimg img { transform: scale(1.04); }
.project h3 { margin: .35rem 0 .35rem; }
.project .by { font-size: .88rem; color: var(--muted); font-weight: 600; }
.project p { color: var(--muted); max-width: 48ch; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* Business rows (healthcare / tech) */
.rows { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.row.flip > :first-child { order: 2; }
.row .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.row .media > img, .row .media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row .logo-plate { background: #fff; display: inline-grid; place-items: center; padding: .9rem 1.2rem; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.row .logo-plate img { height: 56px; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); padding: .4rem .85rem; font-size: .88rem; background: var(--surface); }
.big-num { display: flex; gap: 2.5rem; margin: 1.5rem 0; }
.big-num div strong { display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold-ink); font-weight: 600; }
.big-num div span { font-size: .9rem; color: var(--muted); }
.ext::after { content: " ↗"; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip > :first-child { order: 0; } }

/* Media panel for logo-only media */
.media.plate { display: grid; place-items: center; background: var(--night); }
.media.plate .inner { position: relative; z-index: 1; background: #fff; padding: 2rem 2.5rem; }
.media.plate .inner img { height: 90px; width: auto; }

/* About */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin: 0; color: var(--ink); }
.quote::before { content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin-bottom: 1.5rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.values div { border-top: 2px solid var(--gold); padding-top: 1.25rem; }
.values h3 { font-size: 1.9rem; margin-bottom: .3rem; }
@media (max-width: 860px) { .story, .values { grid-template-columns: 1fr; } }

/* Leadership */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.person .portrait { aspect-ratio: 4 / 5; overflow: hidden; background: #E9E4DA; margin-bottom: 1.25rem; position: relative; }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person h3 { margin-bottom: .1rem; }
.person .role { color: var(--gold-ink); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.person p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; max-width: 460px; } }

/* Companies page */
.sectors { display: grid; gap: 0; }
.sector { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.sector h3 { font-size: 1.8rem; }
.sector ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.sector li strong { display: block; font-weight: 700; }
.sector li span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .sector { grid-template-columns: 1fr; gap: .75rem; } .sector ul { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-card { background: var(--night); color: var(--on-dark); padding: clamp(1.75rem, 4vw, 3rem); }
.contact-card h2 { color: var(--on-dark); font-size: 2.2rem; }
.contact-card address { font-style: normal; color: var(--on-dark-muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.contact-card .phone { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--gold-2); text-decoration: none; margin: .25rem 0 1.5rem; }
.contact-card .label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; margin: 1.5rem 0 .25rem; }
.form-card { background: var(--surface); padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); }
.form-card h2 { font-size: 2.2rem; }
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: .85rem .9rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,162,91,.25); }
textarea { min-height: 8rem; resize: vertical; }
.form-status { padding: .9rem 1rem; border-left: 3px solid var(--gold); background: var(--bg); margin: 0; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 4.5rem 0 2.5rem; font-size: .95rem; border-top: 1px solid var(--dark-line); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.foot img { height: 58px; width: auto; margin-bottom: 1.25rem; }
.foot h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.foot address { font-style: normal; }
.legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-line); font-size: .85rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* v2 refinements */
.brand img { height: 60px; }
.spec dd { white-space: nowrap; }
.biz-card::after { background: linear-gradient(180deg, rgba(11,22,40,0) 25%, rgba(11,22,40,.95) 100%); }
.row .logo-plate img { height: 84px; }
.media.plate .inner { display: grid; place-items: center; width: min(320px, 70%); padding: 1.75rem 2rem; }
.media.plate .inner img { height: auto; max-height: 96px; width: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .biz-card { aspect-ratio: 4 / 5; }
  .biz-logos { inset: 0 0 45% 0; gap: .6rem; }
  .biz-logos span { width: 180px; height: 58px; }
  .biz-logos img { max-height: 32px; }
  .hero-visual { max-width: calc(100% - 16px); }
  .hero-visual .frame { inset: 14px -14px -14px 14px; }
  .hero-tag { right: 0; bottom: 1.25rem; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
}
@media (max-width: 1020px) { .brand img { height: 46px; } }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-img { margin-left: 12px; }
  .feature-img .frame { inset: -12px 12px 12px -12px; }
  .spec dd { white-space: normal; font-size: 1.35rem; }
  .row, .story, .contact, .people { grid-template-columns: minmax(0, 1fr); }
}
.spec { display: flex; flex-wrap: wrap; }
.spec div { flex: 1 1 auto; }
@media (max-width: 1200px) { .spec dd { white-space: normal; font-size: 1.35rem; } .spec div { padding-right: 1.2rem; } .spec div + div { padding-left: 1.2rem; } }
.spec dd { white-space: normal; font-size: 1.4rem; }
.spec div { padding-right: 1.4rem; } .spec div + div { padding-left: 1.4rem; }
.projects { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* v3 corrections */
/* numerals: clean sans figures (Cormorant's 1 read like a Roman I) */
.stats dd, .big-num div strong, .spec dd {
  font-family: var(--sans); font-weight: 300; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums;
}
.spec dd { font-weight: 500; letter-spacing: -0.01em; font-size: 1.2rem; }
.stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(3) { border-left: 1px solid var(--line); }
  .stats div:nth-child(n+3) { border-top: 0; }
  .stats div { padding: 1.5rem .5rem; }
  .stats dd { font-size: 2.2rem; }
  .stats dt { font-size: .8rem; }
}
/* Otek: bigger inside the same white box */
.biz-logos span.lg-otek img { max-height: 56px; }
@media (max-width: 900px) { .biz-logos span.lg-otek img { max-height: 46px; } }
.logos a.lg-otek img { max-height: 92px; }
.logos img { max-height: 76px; }
/* logo-style lockups */
.lockup { display: inline-flex; align-items: center; gap: .85rem; text-align: left; }
.lockup .emblem { width: 50px; height: 54px; flex: none; }
.lk-text { display: flex; flex-direction: column; line-height: 1; }
.lk-name { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; color: #12213A; }
.lk-sub { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #86662A; margin-top: .45rem; padding-top: .45rem; border-top: 1px solid #C5A25B; }
@media (max-width: 860px) { .lk-name { font-size: 1.15rem; } .lockup .emblem { width: 38px; height: 42px; } .lockup { gap: .6rem; } .lk-sub { font-size: .55rem; letter-spacing: .16em; } }
/* business rows: image matches text height */
.row { align-items: stretch; }
.row .media { aspect-ratio: auto; min-height: 380px; height: 100%; }
.row > div:last-child { align-self: center; padding: 1rem 0; }
@media (max-width: 860px) { .row .media { min-height: 0; aspect-ratio: 4 / 3; height: auto; } }
.logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logos a { min-width: 0; }
@media (max-width: 860px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lockup { flex-direction: column; text-align: center; gap: .5rem; }
  .lk-text { align-items: center; }
  .lk-sub { white-space: normal; }
  .logos a, .logos div.l { padding: 1.1rem .6rem; min-height: 140px; }
  .logos a.lg-otek img { max-height: 64px; }
}
@media (min-width: 861px) { .lk-name, .lk-sub { white-space: nowrap; } .lk-name { font-size: 1.45rem; letter-spacing: .05em; } .lockup .emblem { width: 54px; height: 58px; } }

/* v4: single logo panel on the Technology & Design card */
.biz-logos { inset: 0 0 40% 0; display: grid; place-items: center; }
.logo-panel { background: #fff; width: min(250px, 78%); display: grid; box-shadow: 0 14px 36px rgba(0,0,0,.35); }
.logo-panel span { display: grid; place-items: center; height: 66px; padding: .6rem 1.4rem; background: none; width: auto; }
.logo-panel span + span { border-top: 1px solid #E6DFD0; }
.logo-panel img { max-height: 36px; max-width: 100%; width: auto; }
.logo-panel .lp-otek img { max-height: 50px; }
.logo-panel .lp-tcc img { max-height: 44px; }
@media (max-width: 900px) {
  .biz-logos { inset: 0 0 42% 0; }
  .logo-panel span { height: 54px; }
  .logo-panel img { max-height: 30px; } .logo-panel .lp-otek img { max-height: 42px; } .logo-panel .lp-tcc img { max-height: 36px; }
}
/* founder note */
.founder { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; }
.founder-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin: 0; }
.founder-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: .1rem 0 .5rem; line-height: 1.1; }
.founder p:last-child { color: var(--muted); font-size: .98rem; margin: 0; }
.founder em { font-family: var(--serif); font-size: 1.15em; color: var(--ink); }

/* v5: one white plaque holding the three tech/design logos */
.biz-card.tech-card { background: var(--night); }
.plaque { position: absolute; top: 1.25rem; left: 1.25rem; right: 1.25rem; bottom: 42%; z-index: 1; background: #FFFFFF; display: grid; place-items: center; }
.plaque::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(197,162,91,.55); pointer-events: none; }
.plaque-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.1rem, 2.4vw, 1.6rem); width: 100%; height: 100%; padding: 1.5rem; }
.plaque-in span { display: block; line-height: 0; }
.plaque-in img { height: auto; }
/* optical balance: size by width, not height */
.pl-otek img { width: clamp(120px, 11vw, 150px); }
.pl-stox img { width: clamp(130px, 12vw, 160px); }
.pl-tcc img { width: clamp(100px, 9vw, 122px); }
@media (max-width: 900px) {
  .plaque { bottom: 44%; }
  .plaque-in { gap: .9rem; padding: 1.1rem; }
  .pl-otek img { width: 118px; } .pl-stox img { width: 128px; } .pl-tcc img { width: 96px; }
}
@media (max-width: 900px) {
  .biz-card.tech-card { aspect-ratio: 3 / 4; }
  .tech-card .plaque { bottom: 46%; }
}
/* v6: more air between plaque logos, slightly smaller */
.plaque-in { gap: clamp(1.6rem, 3.2vw, 2.3rem); }
.pl-otek img { width: clamp(104px, 9.5vw, 128px); }
.pl-stox img { width: clamp(112px, 10vw, 136px); }
.pl-tcc img { width: clamp(86px, 7.6vw, 104px); }
@media (max-width: 900px) {
  .plaque-in { gap: 1.3rem; }
  .pl-otek img { width: 100px; } .pl-stox img { width: 110px; } .pl-tcc img { width: 82px; }
}

/* v7 */
.biz-card > img.pos-factory { object-position: 72% 50%; }
.person h2.person-name { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: .1rem; }
.biz-body p { min-height: 3.3em; }

/* v8: numerals always in the sans (Manrope) */
.num { font-family: var(--sans); font-style: normal; font-weight: 400; letter-spacing: -0.02em; font-size: .9em; }
.contact-card .phone { font-family: var(--sans); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
