
/*
Theme Name: Trofast Group
Theme URI: https://trofastgroup.com
Author: Trofast Group
Description: Custom Trofast Group 2.0 theme.
Version: 1.2.0
Text Domain: trofast-group
*/

/* ========================================
   TROFAST GROUP — COLORS & TYPOGRAPHY
======================================== */

:root {
  --bg: #080909;
  --bg-soft: #0d0e0e;
  --panel: #111212;
  --text: #f4f2ee;
  --muted: #aaa9a5;
  --line: rgba(255,255,255,0.11);
  --bronze: #806a56;
  --bronze-light: #a58c73;
  --silver: #a9aaab;
  --silver-soft: #737577;
  --green: #6f8f5e;
  --green-deep: #16231a;
  --green-light: #9eb17c;
  --max-width: 1460px;
  --font-main: Arial, Helvetica, sans-serif;
}

/* ========================================
   RESET
======================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ========================================
   HEADER
======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  padding: 0 clamp(24px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(5,5,5,0.90),
    rgba(5,5,5,0.42),
    transparent
  );
  transition: height .3s ease, background .3s ease;
}

.site-header.scrolled {
  height: 72px;
  background: rgba(6,6,6,.91);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 215px;
  height: auto;
  transform: translateY(35px);
}

.site-nav {
  display: none !important;
}

.menu-toggle {
  display: none !important;
}

/* ========================================
   GENERAL SECTIONS
======================================== */

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 125px 0;
}

.kicker {
  margin: 0 0 18px;
  color: var(--bronze-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 55px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}

.section-intro {
  max-width: 540px;
  margin: 0;
  color: #b8b8b4;
  font-size: 15px;
  line-height: 1.75;
}

/* ========================================
   HERO — DO SOMETHING EPIC
======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 150px clamp(24px, 4vw, 68px) 88px;
  background: linear-gradient(
    135deg,
    #070808 0%,
    #0b0b0b 48%,
    #10100f 100%
  );
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -2;
  background:
    radial-gradient(
      circle at 76% 25%,
      rgba(154,119,83,.26),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 72%,
      rgba(91,74,59,.16),
      transparent 27%
    );
  filter: blur(2px);
  animation: bronzeDrift 30s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(
      circle at 57% 67%,
      rgba(190,194,196,.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 34% 20%,
      rgba(130,133,135,.07),
      transparent 25%
    );
  animation: silverDrift 38s ease-in-out infinite alternate;
}

@keyframes bronzeDrift {
  from {
    transform: translate3d(-2%,1%,0) scale(1);
  }
  to {
    transform: translate3d(4%,-2%,0) scale(1.07);
  }
}

@keyframes silverDrift {
  from {
    transform: translate3d(3%,-1%,0) scale(1.03);
  }
  to {
    transform: translate3d(-3%,3%,0) scale(1);
  }
}

.hero-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-13deg);
  opacity: .38;
}

.hero-shape-a {
  width: 64vw;
  height: 35vw;
  right: -20vw;
  top: 17vh;
  border-top: 1px solid rgba(181,145,106,.32);
  border-right: 1px solid rgba(181,145,106,.25);
}

.hero-shape-b {
  width: 48vw;
  height: 28vw;
  right: -2vw;
  top: 36vh;
  border-left: 1px solid rgba(194,198,200,.17);
  border-bottom: 1px solid rgba(194,198,200,.13);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
}

.hero h1 {
  margin: 0;
  max-width: 1000px;
  font-family: "Lulo Clean", sans-serif;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #9a9b9c;
}

.hero h1 .epic {
  color: #9a7657;
}

.language-rail {
  margin-top: 32px;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lang-code {
  min-width: 30px;
  color: var(--bronze-light);
  font-weight: 600;
}

.lang-line {
  color: rgba(255,255,255,.65);
  font-weight: 400;
  transition: opacity .25s ease, transform .25s ease;
}

.lang-line.fade {
  opacity: 0;
  transform: translateY(5px);
}

.scroll-cue {
  position: absolute;
  right: clamp(24px,4vw,68px);
  bottom: 70px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.scroll-cue b {
  color: var(--bronze-light);
  font-size: 18px;
}

/* ========================================
   WHAT WE DO — THREE CARDS
======================================== */

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

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  width: 100%;
  margin-top: 60px;
}

.sector-grid > .sector.sector--visual {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-width: 0;
  height: clamp(315px, 35vw, 440px);
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(165,140,115,.34);
  border-radius: 14px;
  background: #101010;
  transition: transform .3s ease, border-color .3s ease;
}

.sector-grid > .sector.sector--visual:hover {
  transform: translateY(-3px);
  border-color: rgba(165,140,115,.62);
}

.sector--visual > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.sector--visual:hover > img {
  transform: scale(1.025);
}

.sector--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.91) 0%,
    rgba(0,0,0,.53) 17%,
    transparent 52%
  );
}

.sector--visual > h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 2;
  margin: 0;
  padding: clamp(18px, 2vw, 30px);
  color: #f2dfc6;
  font-size: clamp(21px, 2.25vw, 33px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0,0,0,.9);
}

.about-statement {
  margin-top: 110px;
  padding-left: 34px;
  border-left: 1px solid var(--bronze);
  display: grid;
  gap: 11px;
  max-width: 700px;
}

.about-statement span {
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--silver-soft);
}

.about-statement strong {
  font-size: clamp(38px,4.5vw,68px);
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--text);
}

/* ========================================
   LOCATIONS
======================================== */

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

.location-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  width: 100%;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.location-card {
  position: relative;
  min-width: 0;
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.018),
    transparent
  );
  transition: background .35s ease, transform .35s ease;
}

.location-card:hover {
  background: linear-gradient(
    180deg,
    rgba(128,106,86,.095),
    transparent
  );
  transform: translateY(-3px);
}

.location-image {
  width: 100%;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 28px;
  background: #121313;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .7s ease, filter .7s ease;
}

.location-card:hover .location-image img {
  transform: scale(1.025);
}

.country {
  margin: 0 0 10px;
  color: var(--bronze-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.location-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.city {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
}

.location-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #c8c8c4;
  font-size: 12px;
}

.location-card li {
  line-height: 1.5;
}

.location-card li::before {
  content: "—";
  margin-right: 8px;
  color: var(--bronze);
}

/* ========================================
   CHALLENGE — GREEN WORLD
======================================== */

.sustainability {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding:
    125px
    max(24px, calc((100vw - var(--max-width))/2))
    115px;
  color: white;
  background: linear-gradient(
    120deg,
    #0b100c 0%,
    #101b13 35%,
    #1c3020 67%,
    #253c28 100%
  );
}

.sustainability-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .40;
  background:
    radial-gradient(
      circle at 78% 31%,
      rgba(157,183,118,.20),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(56,98,59,.24),
      transparent 38%
    );
  animation: greenWorld 30s ease-in-out infinite alternate;
}

@keyframes greenWorld {
  from {
    transform: scale(1) translate3d(0,0,0);
  }
  to {
    transform: scale(1.07) translate3d(-2%,1%,0);
  }
}

.sustainability-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width),100%);
  margin: 0 auto;
}

.sustainability .kicker {
  color: var(--green-light);
}

.sustainability-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
  padding-bottom: 66px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.sustainability h2 {
  margin: 0 0 38px;
  font-family: var(--font-main);
  font-size: clamp(58px,6vw,104px);
  font-weight: 300;
  line-height: .92;
  letter-spacing: .065em;
  color: white;
}

.sustainability-lead {
  margin: 0 0 26px;
  max-width: 650px;
  font-size: clamp(22px,1.8vw,30px);
  line-height: 1.3;
  font-weight: 300;
}

.sustainability-challenge {
  margin: 0;
  color: var(--green-light);
  font-size: 18px;
  line-height: 1.55;
}

.targets-title {
  margin: 0 0 22px;
  color: rgba(255,255,255,.65);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.global-targets {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.target {
  min-height: 250px;
  padding: 18px 26px;
}

.target:first-child {
  padding-left: 0;
}

.target + .target {
  border-left: 1px solid rgba(255,255,255,.16);
}

.target strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(35px,3.5vw,58px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .02em;
}

.target b {
  display: block;
  margin-bottom: 30px;
  color: var(--green-light);
  font-size: 15px;
}

.target span {
  display: block;
  margin-top: 28px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.55;
}

.target b + span {
  margin-top: 0;
}

.target small {
  display: block;
  margin-top: 18px;
  color: rgba(255,255,255,.45);
  font-size: 11px;
}

.trofast-challenge {
  display: grid;
  grid-template-columns: .72fr 1fr 1.18fr;
  gap: 50px;
  padding: 48px 0 42px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.challenge-year {
  display: block;
  color: var(--green-light);
  font-size: clamp(65px,6.8vw,110px);
  font-weight: 300;
  line-height: .85;
  letter-spacing: .03em;
}

.challenge-copy {
  padding-right: 32px;
  border-right: 1px solid rgba(255,255,255,.16);
}

.challenge-copy p,
.challenge-together p {
  max-width: 520px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.80);
  font-size: 14px;
  line-height: 1.65;
}

.challenge-together strong {
  display: block;
  margin-bottom: 25px;
  font-size: clamp(22px,2vw,31px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .06em;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding-top: 42px;
}

.impact-item {
  min-height: 120px;
  padding: 0 30px;
}

.impact-item:first-child {
  padding-left: 0;
}

.impact-item + .impact-item {
  border-left: 1px solid rgba(255,255,255,.16);
}

.impact-item strong {
  display: block;
  margin-bottom: 13px;
  color: var(--green-light);
  font-size: clamp(23px,2vw,34px);
  font-weight: 400;
  line-height: 1;
}

.impact-item span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.6;
}

/* ========================================
   CONTACT
======================================== */

.contact {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 85px;
}

.contact-copy > p:last-child {
  max-width: 340px;
  color: #b5b5b1;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form label > span {
  color: #92928f;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 17px;
  color: #f0efec;
  background: #111212;
  border: 1px solid #292a2a;
  outline: none;
  font: inherit;
  transition: border-color .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bronze);
}

textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: flex-end;
  padding: 17px 26px;
  border: 0;
  background: var(--bronze);
  color: white;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.contact-form button:hover {
  background: var(--bronze-light);
  transform: translateY(-2px);
}

.form-note {
  margin: 0;
  color: #6f6f6f;
  font-size: 10px;
  text-align: right;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding: 34px clamp(24px,4vw,68px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: #777;
  font-size: 11px;
}

.site-footer img {
  width: 150px;
  opacity: .75;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-self: flex-end;
  gap: 24px;
}

.footer-links a:hover {
  color: #ddd;
}

/* ========================================
   THE TREND COMPANY — ORIGINAL IDENTITY
======================================== */

.trofast-heritage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: clamp(680px, 100svh, 960px);
  padding: clamp(35px, 5.5vw, 90px);
  overflow: hidden;
  background: #101010;
}

.trofast-heritage__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.trofast-heritage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.42),
    rgba(0,0,0,.12) 70%
  );
}

.trofast-heritage__content {
  width: 100%;
  max-width: 1120px;
  color: #fff;
}

.trofast-heritage h2 {
  margin: 0 0 clamp(35px, 5vw, 75px);
  color: #fff;
  font-size: clamp(42px, 7.7vw, 124px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.trofast-heritage h2 span {
  display: block;
}

.trofast-heritage p {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2.55vw, 37px);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: .27em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {
  .location-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .sustainability-top {
    grid-template-columns: 1fr;
  }

  .trofast-challenge {
    grid-template-columns: 1fr;
  }

  .challenge-copy {
    padding-right: 0;
    border-right: 0;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}

/* ========================================
   SMALLER SCREENS
======================================== */

@media (max-width: 760px) {
  .trofast-heritage {
    min-height: 740px;
    padding: 38px 7%;
  }

  .trofast-heritage h2 {
    font-size: clamp(33px, 7.4vw, 58px);
    letter-spacing: .08em;
  }

  .trofast-heritage p {
    font-size: clamp(15px, 3.5vw, 20px);
    line-height: 1.9;
    letter-spacing: .15em;
  }

  .trofast-heritage::before {
    background: rgba(0,0,0,.27);
  }
}

/* ========================================
   WHAT WE DO — MOBILE ONLY
======================================== */

@media (max-width: 720px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid > .sector.sector--visual {
    height: min(112vw, 480px);
  }

  .sector--visual > h3 {
    font-size: clamp(23px, 5vw, 32px);
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {
  .site-header {
    height: 72px;
  }

  .brand img {
    width: 170px;
    transform: translateY(18px);
  }

  .hero {
    min-height: 740px;
    padding: 130px 24px 65px;
  }

  .hero h1 {
    font-size: clamp(62px,19vw,105px);
    line-height: .87;
    letter-spacing: .025em;
  }

  .language-rail {
    margin-top: 28px;
    font-size: 11px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    width: calc(100% - 32px);
    padding: 85px 0;
  }

  .section-head {
    display: grid;
    gap: 25px;
  }

  .section h2 {
    font-size: clamp(40px,13vw,64px);
  }

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

  .sustainability {
    padding: 90px 16px 80px;
  }

  .global-targets {
    grid-template-columns: 1fr;
  }

  .target {
    min-height: auto;
    padding: 28px 0;
  }

  .target + .target {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.15);
  }

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

  .impact-item {
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,.15);
  }

  .impact-item + .impact-item {
    border-left: 0;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .footer-links {
    justify-self: flex-start;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hero::before,
  .hero::after,
  .sustainability-bg {
    animation: none !important;
  }
}


/* WHAT WE DO — KORTTIEN KORJAUS */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1460px, calc(100% - 48px));
    margin: 50px auto;
}

.sector-grid > .sector.sector--visual {
    position: relative;
    display: block;
    min-width: 0;
    height: 380px;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #101010;
}


.sector-grid > .sector.sector--visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


/* WHAT WE DO – REMOVE OUTER FRAMES */

.sector-grid {
    border: none !important;
    gap: 12px !important;
}

.sector-grid > .sector.sector--visual {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.sector-grid > .sector.sector--visual > img {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}



.sector-grid > .sector.sector--visual > h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 25px;
    color: #e9d4b7;
    font-size: 27px;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
}

@media (max-width: 700px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }
}


/* STATIC CARDS - NO HOVER MOVEMENT */

/* WHAT WE DO */
.sector-grid .sector,
.sector-grid .sector:hover,
.sector-grid .sector img,
.sector-grid .sector:hover img {
    transform: none !important;
    transition: none !important;
}

/* LOCATIONS */
.location-card,
.location-card:hover,
.location-card .location-image img,
.location-card:hover .location-image img {
    transform: none !important;
    transition: none !important;
}
#locations {
    display: none;
}
/* ============================================================
   TROFAST GROUP — MOBILE REFINEMENT (NOV 2026)
   Scope is deliberately limited to phones. Desktop/tablet styling
   above 650px stays identical to the approved release.
   ============================================================ */
@media screen and (max-width: 650px) {
  /* Compact, non-overlapping identity in the fixed header. */
  .site-header {
    height: 78px;
    padding: 0 18px;
    background: linear-gradient(180deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .70) 76%, rgba(5, 5, 5, 0));
  }
  .site-header.scrolled {
    height: 62px;
    background: rgba(6, 6, 6, .94);
  }
  .site-header .brand { display: block; flex: 0 0 auto; line-height: 0; }
  .site-header .brand img {
    display: block;
    width: 120px;
    height: auto;
    transform: none;
    transition: width .25s ease;
  }
  .site-header.scrolled .brand img { width: 94px; }

  /* Keep the full headline INSIDE the phone viewport. */
  .hero {
    min-height: 690px;
    min-height: max(690px, 100svh);
    padding: 136px 20px 74px;
  }
  .hero-content { width: 100%; min-width: 0; }
  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(39px, 12.5vw, 56px);
    line-height: .98;
    letter-spacing: 0;
    overflow-wrap: normal;
  }
  .language-rail { flex-wrap: wrap; column-gap: 12px; row-gap: 8px; margin-top: 22px; }
  .lang-line { min-width: 0; overflow-wrap: anywhere; }

  /* The header no longer collides with the heritage headline. */
  .trofast-heritage {
    padding-top: 112px;
  }

  /* Preserve the portrait architecture drawings, without squeezing
     them into a short landscape-shaped crop. */
  .sector-grid {
    width: calc(100% - 36px);
    margin: 38px auto 70px;
    gap: 20px !important;
  }
  .sector-grid > .sector.sector--visual {
    height: auto;
    aspect-ratio: 1086 / 1448;
  }
  .sector-grid > .sector.sector--visual > img {
    object-fit: contain;
  }
  .sector-grid > .sector.sector--visual > h3 {
    padding: 18px 18px 20px;
    font-size: clamp(21px, 5.5vw, 27px);
    line-height: 1.16;
    letter-spacing: .01em;
  }
}

@media screen and (max-width: 359px) {
  .hero h1 { font-size: 12.25vw; }
  .site-header .brand img { width: 108px; }
  .site-header.scrolled .brand img { width: 86px; }
}
