/* =========================================================
   KMD BRANDS LIMITED
   Terrain-system corporate identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --evergreen: #183934;
  --evergreen-deep: #102824;
  --stone: #f3efe6;
  --charcoal: #1a1d1b;
  --orange: #c66a3d;
  --orange-dark: #a8542e;
  --eucalyptus: #9fb7ac;
  --grey-green: #d8ded8;
  --gold: #d1a44c;
  --white: #ffffff;
  --muted: #68726d;
  --line: rgba(26,29,27,0.14);
  --light-line: rgba(255,255,255,0.18);

  --sans: Arial, Helvetica, sans-serif;

  --shell: min(1240px, calc(100% - 64px));
  --section-space: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--stone);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

::selection {
  background: var(--orange);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,239,230,0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: 0.9;
  text-decoration: none;
}

.brand-main {
  color: var(--evergreen);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--orange);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.desktop-nav a {
  position: relative;
  color: #59615d;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.mobile-nav {
  display: none;
}

/* Type / buttons */

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #edb79b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 850px;
  font-size: clamp(4.2rem, 7.8vw, 7.9rem);
}

h1 span {
  display: block;
  color: #f0b388;
}

h2 {
  font-size: clamp(2.55rem, 4.7vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

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

.button-primary:hover {
  background: var(--orange-dark);
}

.button-secondary {
  background: var(--evergreen);
  color: white;
}

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  background: var(--charcoal);
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: white;
}

/* Hero */

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--evergreen-deep);
  color: white;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  object-position: center 46%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9,28,25,0.9) 0%, rgba(9,28,25,0.68) 42%, rgba(9,28,25,0.18) 76%),
    linear-gradient(0deg, rgba(9,28,25,0.42), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 70px;
  align-items: end;
  padding: 140px 0 88px;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255,255,255,0.72);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.hero-index {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px 14px;
  align-self: end;
  padding: 22px;
  border: 1px solid var(--light-line);
  background: rgba(10,28,25,0.46);
  backdrop-filter: blur(8px);
}

.hero-index span {
  color: #edb79b;
  font-size: 0.64rem;
  font-weight: 900;
}

.hero-index strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.terrain-rule {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 0.7fr;
}

.terrain-rule span:nth-child(1) { background: var(--orange); }
.terrain-rule span:nth-child(2) { background: var(--gold); }
.terrain-rule span:nth-child(3) { background: var(--eucalyptus); }
.terrain-rule span:nth-child(4) { background: var(--evergreen); }

/* Group */

.group {
  background: white;
}

.group-grid {
  display: grid;
  grid-template-columns: 0.2fr 1fr;
  gap: 58px;
}

.group-marker span {
  display: block;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.group-marker small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-copy h2 {
  max-width: 900px;
}

.group-copy-columns {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 52px;
  margin-left: auto;
}

.group-copy-columns p {
  color: var(--muted);
}

.group-copy-columns .lead {
  color: var(--charcoal);
  font-size: 1.16rem;
}

/* Brand portfolio */

.brands {
  background: var(--stone);
}

.brands-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}

.brands-heading > p {
  color: var(--muted);
}

.brand-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.brand-feature {
  min-height: 410px;
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.brand-feature:nth-child(2) {
  grid-template-columns: 0.72fr 1.28fr;
}

.brand-feature figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.brand-feature img {
  transition: transform 360ms ease;
}

.brand-feature:hover img {
  transform: scale(1.025);
}

.brand-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.brand-kathmandu .brand-feature-copy {
  background: var(--grey-green);
}

.brand-oboz .brand-feature-copy {
  background: var(--evergreen);
  color: white;
}

.brand-ripcurl .brand-feature-copy {
  background: var(--orange);
  color: white;
}

.brand-number {
  margin-bottom: auto;
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 900;
}

.brand-oboz .brand-number,
.brand-ripcurl .brand-number {
  color: rgba(255,255,255,0.7);
}

.brand-type {
  margin-bottom: 8px;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-feature h3 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  letter-spacing: -0.05em;
}

.brand-feature p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.brand-oboz p:last-child,
.brand-ripcurl p:last-child {
  color: rgba(255,255,255,0.72);
}

/* Purpose */

.purpose {
  background: var(--charcoal);
  color: white;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 70px;
  align-items: start;
}

.purpose-intro p:not(.eyebrow) {
  color: rgba(255,255,255,0.62);
}

.purpose-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--light-line);
  border-left: 1px solid var(--light-line);
}

.purpose-values article {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.purpose-values span {
  color: #edb79b;
  font-size: 0.64rem;
  font-weight: 900;
}

.purpose-values h3 {
  margin: 30px 0 8px;
  font-size: 1.35rem;
}

.purpose-values p {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.84rem;
}

/* Responsibility */

.responsibility {
  background: white;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.responsibility-visual {
  position: relative;
  min-height: 590px;
}

.responsibility-photo {
  position: absolute;
  inset: 0 70px 70px 0;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 6%, 90% 100%, 0 92%);
}

.topo-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--stone);
}

.topo-card span {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--evergreen);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.topo-card span:last-child {
  border-bottom: 0;
}

.responsibility-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.focus-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.focus-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.focus-list article > span {
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 900;
}

.focus-list h3 {
  margin-bottom: 5px;
}

.focus-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.bcorp-note {
  margin-top: 62px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--grey-green);
}

.bcorp-badge {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 3px solid var(--evergreen);
  border-radius: 50%;
  color: var(--evergreen);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.bcorp-note h3 {
  font-size: 1.5rem;
}

.bcorp-note p:last-child {
  margin: 0;
  color: #52615b;
}

/* Investors */

.investors {
  background: var(--stone);
}

.investors-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.9fr 1.25fr;
  gap: 42px;
  align-items: start;
}

.investor-heading {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
}

.section-number {
  color: var(--orange);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.investor-links {
  border-top: 1px solid var(--line);
}

.investor-links a {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  text-decoration: none;
}

.investor-links a:hover span {
  color: var(--orange);
}

.investor-links span {
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 150ms ease;
}

.investor-links strong {
  color: var(--orange);
  font-size: 0.68rem;
}

.updates {
  padding: 26px;
  background: var(--evergreen);
  color: white;
}

.updates .eyebrow {
  color: #edb79b;
}

.updates article {
  padding: 18px 0;
  border-top: 1px solid var(--light-line);
}

.updates article > span {
  color: #c9d8d1;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.updates h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Careers */

.careers {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: white;
}

.careers-photo,
.careers-overlay {
  position: absolute;
  inset: 0;
}

.careers-overlay {
  background: linear-gradient(90deg, rgba(14,32,28,0.88), rgba(14,32,28,0.52) 55%, rgba(14,32,28,0.22));
}

.careers-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: end;
  padding: 100px 0 86px;
}

.careers-content > div:first-child p:last-child {
  max-width: 560px;
  color: rgba(255,255,255,0.7);
}

.career-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--light-line);
  border-left: 1px solid var(--light-line);
}

.career-themes article {
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
  background: rgba(9,28,25,0.34);
  backdrop-filter: blur(4px);
}

.career-themes span {
  color: #edb79b;
  font-size: 0.64rem;
  font-weight: 900;
}

.career-themes strong {
  display: block;
  margin: 48px 0 8px;
  font-size: 1.2rem;
}

.career-themes p {
  margin: 0;
  color: rgba(255,255,255,0.64);
  font-size: 0.82rem;
}

/* Contact */

.contact {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.contact-copy {
  padding: 34px;
  border: 1px solid var(--line);
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.contact-copy address {
  display: grid;
  gap: 5px;
  margin: 28px 0;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  font-style: normal;
}

.contact-copy address span {
  color: var(--muted);
}

.contact-statement {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(24,57,52,0.98), rgba(16,40,36,0.96)),
    var(--evergreen);
  color: white;
}

.contact-statement::before,
.contact-statement::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}

.contact-statement::before {
  width: 480px;
  height: 480px;
  right: -180px;
  top: -120px;
}

.contact-statement::after {
  width: 340px;
  height: 340px;
  right: -60px;
  top: 10px;
}

.statement-index {
  position: absolute;
  top: 28px;
  left: 34px;
  color: #edb79b;
  font-size: 2.8rem;
  font-weight: 900;
}

.contact-statement .eyebrow {
  color: #edb79b;
}

.contact-statement p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,0.66);
}

.statement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  background: #101715;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr 1fr;
  gap: 52px;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-brand .brand-main {
  color: white;
}

.footer-brand .brand-sub {
  color: #edb79b;
}

.footer-brand p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  gap: 7px;
}

.footer-nav a,
.footer-bottom a {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-address strong {
  margin-bottom: 7px;
}

.footer-address span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 0.7rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hidden-targets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 42px, 1020px);
  }

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

  .updates {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 74px;
  }

  .desktop-nav {
    display: none;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-index {
    max-width: 320px;
  }

  .group-grid,
  .purpose-grid,
  .responsibility-grid,
  .careers-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brands-heading {
    grid-template-columns: 1fr;
  }

  .brand-feature,
  .brand-feature:nth-child(2) {
    grid-template-columns: 1fr 1fr;
  }

  .responsibility-visual {
    min-height: 520px;
  }

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

  .updates {
    grid-column: auto;
  }

  .career-themes {
    grid-template-columns: 1fr 1fr 1fr;
  }

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

  .footer-address {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--light-line);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 60px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row {
    min-height: 72px;
  }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  h2 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 96px 0 70px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(9,28,25,0.88), rgba(9,28,25,0.56));
  }

  .group-grid,
  .group-copy-columns,
  .purpose-values,
  .brand-feature,
  .brand-feature:nth-child(2),
  .investor-heading,
  .career-themes {
    grid-template-columns: 1fr;
  }

  .group-grid {
    gap: 20px;
  }

  .brand-feature {
    min-height: 0;
  }

  .brand-feature figure {
    height: 320px;
  }

  .brand-oboz .brand-feature-copy {
    order: 2;
  }

  .brand-feature-copy {
    min-height: 300px;
  }

  .responsibility-visual {
    min-height: 470px;
  }

  .responsibility-photo {
    inset: 0 0 110px 0;
    clip-path: none;
  }

  .topo-card {
    right: 0;
    bottom: 0;
    width: 220px;
  }

  .bcorp-note {
    grid-template-columns: 1fr;
  }

  .bcorp-badge {
    width: 130px;
  }

  .careers {
    min-height: 900px;
  }

  .career-themes {
    border-left: 0;
  }

  .career-themes article {
    min-height: 170px;
  }

  .career-themes strong {
    margin-top: 28px;
  }

  .statement-actions {
    align-items: stretch;
  }

  .statement-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-address {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .brand-main {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-index {
    grid-template-columns: 36px 1fr;
    padding: 18px;
  }

  .contact-statement {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
