:root {
  --ink: #111116;
  --ink-soft: #272832;
  --paper: #f4eee6;
  --paper-deep: #e3d5c4;
  --hide: #bd2630;
  --hide-dark: #151722;
  --brass: #c8373f;
  --brass-light: #e45b62;
  --stone: #756c63;
  --white: #fff8ee;
  --line: rgba(21, 23, 34, .16);
  --shadow: 0 24px 60px rgba(17, 17, 22, .18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: .75rem 1rem;
  border-radius: 4px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 229, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(17, 17, 22, .2);
  background: var(--hide);
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 238, .2);
  margin-bottom: 1rem;
}

.brand-text {
  display: grid;
  line-height: 1.05;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
}

.brand-text small {
  color: var(--stone);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .62rem;
  letter-spacing: .22em;
  margin-top: .28rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.site-nav a {
  padding: .65rem .8rem;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: .88rem;
  letter-spacing: .02em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--hide);
  background: rgba(200, 55, 63, .11);
}

.nav-cta {
  border: 1px solid rgba(21, 23, 34, .18);
}

.hero {
  min-height: calc(100svh - 77px);
  color: var(--white);
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 12, .92), rgba(9, 9, 12, .6) 46%, rgba(9, 9, 12, .18)),
    linear-gradient(0deg, rgba(9, 9, 12, .42), rgba(9, 9, 12, .08));
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image.box-focus {
  object-position: 62% center;
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--brass-light);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  font-weight: 500;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero-copy {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: rgba(255, 250, 242, .84);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--brass);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 250, 242, .36);
  color: var(--white);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.section.alt {
  background: var(--white);
}

.section.dark {
  background: var(--hide-dark);
  color: var(--white);
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.lead {
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  color: var(--ink-soft);
  margin: 0;
}

.dark .lead,
.dark .muted {
  color: rgba(255, 250, 242, .72);
}

.muted {
  color: var(--stone);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, .5);
}

.stat {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  color: var(--hide);
  font-weight: 500;
}

.stat span {
  display: block;
  margin-top: .55rem;
  color: var(--stone);
  font-size: .9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2rem);
  min-height: 260px;
}

.feature .number {
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.feature p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.media-frame {
  box-shadow: var(--shadow);
  background: var(--hide-dark);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(21, 23, 34, .14);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame img[src*="chowdhury-logo"] {
  object-fit: contain;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--hide);
}

.portfolio-card img[src*="product-box"],
.media-frame img[src*="product-box"] {
  object-position: center;
}

.text-stack > * + * {
  margin-top: 1rem;
}

.text-stack p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.3rem;
  background: var(--white);
}

.timeline-item strong {
  color: var(--hide);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.portfolio-grid.wide {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 55, 63, .34);
  box-shadow: 0 18px 42px rgba(17, 17, 22, .12);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.product-image {
  height: clamp(260px, 24vw, 320px);
  background:
    linear-gradient(135deg, rgba(244, 238, 230, .92), rgba(255, 248, 238, .96)),
    #f7f0e8;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
}

.product-image-cover img {
  object-fit: cover;
}

.product-image-contain img {
  object-fit: contain;
  padding: clamp(.55rem, 1.6vw, 1.1rem);
}

.product-content {
  padding: 1rem 1.05rem 1.05rem;
  display: grid;
  gap: .55rem;
}

.portfolio-card p {
  margin: 0;
  color: var(--stone);
  line-height: 1.55;
  font-size: .94rem;
}

.portfolio-card h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.portfolio-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.4rem;
}

.filter-button {
  border: 1px solid rgba(21, 23, 34, .18);
  background: rgba(255, 248, 238, .72);
  color: var(--ink-soft);
  border-radius: 4px;
  padding: .62rem .82rem;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.filter-button.active,
.filter-button:hover {
  background: var(--hide-dark);
  border-color: var(--hide-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.product-category {
  margin: 0;
  color: var(--brass) !important;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem !important;
  font-weight: 800;
}

.product-meta {
  margin: .25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.product-meta div {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--line);
  background: rgba(244, 238, 230, .55);
  padding: .32rem .48rem;
  border-radius: 4px;
}

.product-meta dt {
  color: var(--stone);
  font-size: .72rem;
  line-height: 1.1;
}

.product-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: left;
  font-size: .72rem;
  line-height: 1.1;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.owner-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2rem);
}

.owner-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.value-list {
  display: grid;
  gap: .85rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.value-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--brass);
  color: var(--ink-soft);
}

.quality-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.quality-band img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.brand-strip article {
  background: var(--white);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 250, 242, .18);
  border: 1px solid rgba(255, 250, 242, .18);
}

.capability-list article {
  padding: clamp(1.3rem, 3vw, 2rem);
  background: #181a26;
}

.capability-list p {
  color: rgba(255, 250, 242, .72);
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-info,
.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--ink-soft);
}

label {
  display: grid;
  gap: .45rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(90, 45, 26, .2);
  border-radius: 4px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: .85rem .9rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 1.4rem;
  color: var(--hide);
  font-weight: 700;
}

.site-footer {
  background: #09090c;
  color: rgba(255, 250, 242, .74);
  padding: 3rem 1.25rem;
}

.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: .55rem;
}

.footer-bottom {
  width: min(100%, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 250, 242, .13);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(189, 38, 48, .22), transparent 42%),
    var(--hide-dark);
  color: var(--white);
  padding: clamp(4rem, 9vw, 8rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.page-hero p {
  max-width: 670px;
  color: rgba(255, 250, 242, .75);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-grid article {
  background: var(--white);
  padding: 1.4rem;
}

.process-grid strong {
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: grid;
    padding: .75rem;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .section-head,
  .split,
  .split.reverse,
  .contact-panel,
  .footer-grid,
  .owner-card,
  .quality-band {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .portfolio-grid,
  .portfolio-grid.wide,
  .image-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    padding-inline: 1rem;
  }

  .brand-text {
    font-size: .78rem;
  }

  .brand-text small {
    font-size: .56rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(16, 10, 7, .45), rgba(16, 10, 7, .88));
  }

  .stat-strip,
  .portfolio-grid,
  .portfolio-grid.wide,
  .image-grid,
  .brand-strip,
  .capability-list,
  .form-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: clamp(220px, 66vw, 260px);
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .button {
    width: 100%;
  }
}
