/* Quality Steel Rolling Mill — Apple product-page grammar: white and #f5f5f7 grounds, black chapters
   for the hero and the mill, SF Pro, photography carries the page. Brief: PRODUCT.md, docs/SITE-BRIEF.md */
:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ground: #fff; --tile: #f5f5f7; --rule: #d2d2d7;
  --blue: #0066cc; --blue-btn: #0071e3; --black: #000;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.28,.11,.32,1);
  --pad: max(22px, env(safe-area-inset-left));
  color-scheme: light;
}
html:lang(hi) { --font: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", Mangal, -apple-system, BlinkMacSystemFont, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 52px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
html:lang(hi) body { letter-spacing: 0; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; text-underline-offset: .18em; } }
::selection { background: #b3d7ff; }
:focus-visible { outline: 2px solid var(--blue-btn); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 { letter-spacing: 0; line-height: 1.32; font-weight: 700; }

/* nav: Apple's slim translucent bar */
.nav { position: sticky; top: 0; z-index: 30; height: 48px; background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.nav-in { max-width: 1024px; margin: 0 auto; height: 100%; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; margin-right: auto; }
@media (hover: hover) { .brand:hover { text-decoration: none; } }
.nav-links { display: flex; gap: 30px; }
.nav-links a, .lang { color: var(--ink); font-size: 12.5px; opacity: .85; letter-spacing: -.01em; }
html:lang(hi) .nav-links a, html:lang(hi) .lang { font-size: 13.5px; }
@media (hover: hover) { .nav-links a:hover, .lang:hover { opacity: 1; text-decoration: none; } }
.nav-end { display: flex; align-items: center; gap: 16px; }
.nav.on-dark { background: rgba(22,22,23,.8); border-color: rgba(255,255,255,.08); }
.nav.on-dark .brand, .nav.on-dark .nav-links a, .nav.on-dark .lang, .nav.on-dark .menu-btn { color: #f5f5f7; }
.nav.on-dark .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.3); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 12px; border-radius: 980px; background: var(--blue-btn); color: #fff; font-size: 12.5px; font-weight: 400; -webkit-tap-highlight-color: transparent; transition: background-color 200ms var(--ease), transform 100ms ease-out; }
.pill:active { transform: scale(.97); }
@media (hover: hover) { .pill:hover { background: #0062c4; text-decoration: none; } }
.pill-lg { min-height: 44px; padding: 0 22px; font-size: 17px; }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: 13px; color: var(--ink); padding: 8px 0; cursor: pointer; }
@media (max-width: 833px) { .nav-links, .nav-end .pill { display: none; } .menu-btn { display: block; } }

.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 14px var(--pad) 40px; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 240ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms; }
.sheet.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.sheet-close { align-self: flex-start; background: none; border: 0; font: inherit; font-size: 15px; color: var(--blue); padding: 10px 0; margin-bottom: 20px; cursor: pointer; }
.sheet a.big { color: var(--ink); font-size: 28px; font-weight: 600; letter-spacing: -.02em; padding: 10px 0; }
.sheet .pill-lg { margin-top: 28px; align-self: flex-start; }

/* shared section head */
section { padding: clamp(80px, 11vw, 140px) var(--pad); }
.head { max-width: 980px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.head h2 { font-size: clamp(32px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.015em; }
.head p { max-width: 640px; margin: 18px auto 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.38; color: var(--ink-2); letter-spacing: .011em; }
html:lang(hi) .head p { letter-spacing: 0; line-height: 1.6; }

/* hero: black chapter with the bundle */
.hero { background: var(--black); color: #f5f5f7; padding: clamp(56px, 9vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero-copy { padding: 0 var(--pad); }
.hero h1 { font-size: clamp(44px, 8.4vw, 96px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
html:lang(hi) .hero h1 { letter-spacing: 0; }
.hero .sub { max-width: 620px; margin: 20px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; color: #a1a1a6; letter-spacing: .009em; }
.ctas { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 30px 0 0; }
.link { font-size: 19px; color: #2997ff; }
.hero-media { margin-top: clamp(24px, 4vw, 40px); }
.hero-img { width: 100%; max-width: 1440px; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; animation: settle 1400ms var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }
.hero-copy > * { animation: rise 900ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; } .hero-copy > :nth-child(3) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* at a glance */
.glance { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.glance-row { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.glance-row div { display: flex; flex-direction: column-reverse; }
.glance-row dd { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.glance-row dt { margin-top: 6px; font-size: 14px; color: var(--ink-2); letter-spacing: -.01em; }
@media (max-width: 700px) { .glance-row { grid-template-columns: 1fr 1fr; row-gap: 36px; } }

/* brands */
.brand-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 899px) { .brand-grid { grid-template-columns: 1fr; } }
.brand-tile { background: var(--tile); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.brand-copy { padding: 44px 24px 24px; }
.brand-tile h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.02em; }
.brand-tile p { margin: 8px 0 0; font-size: 19px; color: var(--ink-2); }
.brand-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: auto; }

/* mill: full-bleed black chapter */
.mill { position: relative; background: var(--black); color: #f5f5f7; padding: 0; overflow: hidden; }
.mill-img { width: 100%; height: min(92vh, 860px); object-fit: cover; opacity: .92; }
.mill-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(40px, 7vw, 96px) var(--pad); background: linear-gradient(transparent, rgba(0,0,0,.82) 55%); }
.mill-copy h2, .mill-copy p { max-width: 680px; margin-left: max(0px, calc((100% - 1024px) / 2)); }
.mill-copy h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
.mill-copy p { margin-top: 18px; margin-bottom: 0; font-size: clamp(17px, 1.9vw, 21px); color: #a1a1a6; }
@media (max-width: 700px) { .mill-img { height: 78vh; } }

/* TMT sizes */
.sizes { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px clamp(12px, 2.2vw, 30px); font-size: clamp(36px, 6.2vw, 84px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sizes em { font-style: normal; font-size: .32em; color: var(--ink-2); letter-spacing: 0; }
.calc { max-width: 720px; margin: clamp(48px, 6vw, 72px) auto 0; background: var(--tile); border-radius: 28px; padding: clamp(28px, 4vw, 44px); text-align: center; }
.calc-l { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.segs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: #e8e8ed; border-radius: 12px; }
.seg { min-width: 48px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font: 600 16px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.seg[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; }
.calc-out dd { margin: 4px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-out dt { font-size: 13px; color: var(--ink-2); }
@media (max-width: 520px) { .calc-out { grid-template-columns: 1fr; } }
.grades { margin: 28px 0 0; font-size: 17px; font-weight: 600; }
.grades span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); margin-bottom: 4px; }
.note { margin: 14px auto 0; max-width: 560px; font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: center; letter-spacing: 0; }

/* structural */
.structural { background: var(--tile); }
.tiles { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 759px) { .tiles { grid-template-columns: 1fr; } }
.tile { margin: 0; background: #fff; border-radius: 28px; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile figcaption { padding: 22px 28px 30px; }
.tile h3 { font-size: 24px; letter-spacing: -.01em; }
.tile p { margin: 6px 0 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* certified */
.lics { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .lics { grid-template-columns: 1fr; } }
.lic { background: var(--tile); border-radius: 28px; padding: 36px 32px; text-align: center; }
.lic p { margin: 0; }
.lic .lic-no { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lic-std { font-size: 14px; color: var(--ink-2); }
.lic .lic-scope { margin-top: 10px; font-size: 17px; }
.lic .lic-valid { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.cert .note { margin-top: 24px; }

/* contact */
.contact { background: var(--tile); }
.wa { text-align: center; margin: 0 0 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wa-no { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.people { list-style: none; max-width: 640px; margin: 0 auto; padding: 0; background: #fff; border-radius: 22px; overflow: hidden; }
.people li + li { border-top: 1px solid #e8e8ed; }
.people a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; min-height: 56px; color: var(--ink); }
@media (hover: hover) { .people a:hover { text-decoration: none; background: #fafafa; } }
.people span { color: var(--ink-2); font-size: 15px; }
.people b { font-weight: 500; font-size: 17px; color: var(--blue); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }

/* footer */
footer { background: var(--tile); border-top: 1px solid var(--rule); padding: 20px var(--pad) 32px; }
.foot { max-width: 980px; margin: 0 auto; font-size: 12px; line-height: 1.6; color: var(--ink-2); letter-spacing: -.01em; }
.foot p { margin: 0 0 6px; }
.foot b { color: var(--ink); font-weight: 600; }

/* reveal: once, gently */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* licence claims hide themselves after the licence end date (see site.js) */
.lic-expired [data-lic] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-copy > * { animation: none; }
  .js .reveal { transform: none; transition: opacity 200ms linear; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) { .nav, .sheet { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
