@import url("/static/css/foundation.css");

:root {
  --ink: #102633;
  --ink-deep: #071d29;
  --ivory: #f5f1e8;
  --paper: #fbf8f1;
  --bronze: #9c7950;
  --bronze-light: #c29a6b;
  --muted: #686b6c;
  --border: #d8d0c2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  min-height: 92px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: .02em;
}

.brand span,
.eyebrow,
.project-label {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 30px;
}

.site-header nav a {
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
}

.hero,
.page-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 76px 28px;
}

.hero {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(251,248,241,1) 0%, rgba(251,248,241,1) 55%, rgba(245,241,232,.55) 100%);
}

.hero h1,
.page-intro h1 {
  margin: 8px 0 0;
  max-width: 820px;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: .82;
  letter-spacing: -.055em;
}

.hero h1 span { color: var(--bronze); }

.hero h2 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
}

.hero > p:not(.eyebrow),
.page-intro > p:not(.eyebrow) {
  max-width: 680px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  text-decoration: none;
  border: 1px solid var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

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

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-bronze {
  border-color: var(--bronze-light);
  background: var(--bronze);
  color: white;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 54px 28px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--bronze);
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  text-transform: uppercase;
}

.section-heading a {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .18em;
}

.project-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.project-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  background: var(--ivory);
  border: 1px solid var(--border);
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.project-card h2,
.project-card h3,
.service-grid h2,
.service-grid h3 {
  font-family: var(--serif);
}

.project-label {
  margin-top: 18px;
  color: var(--bronze);
}

.service-grid article {
  border-left: 1px solid var(--border);
  padding: 0 22px;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding: 8px 12px;
  background: var(--ivory);
  border: 1px solid var(--border);
}

.status-note {
  color: var(--muted);
  font-style: italic;
}

.contact-band {
  margin-top: 40px;
  padding: 34px max(28px, calc((100vw - var(--max-width)) / 2 + 28px));
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-band p {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .2em;
}

.contact-band h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
}

.phone,
.contact-phone {
  font-family: var(--serif);
  text-decoration: none;
}

.phone {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.contact-phone {
  display: block;
  margin: 28px 0;
  font-size: clamp(3rem, 8vw, 6rem);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
}

.site-footer div {
  display: flex;
  flex-direction: column;
}

@media (max-width: 850px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .page-intro,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand strong { font-size: 1.65rem; }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button { text-align: center; }

  .section-heading h2 { font-size: 2rem; }

  .contact-band {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Phase 1B visual refinement */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(251, 248, 241, .96);
}

.site-header nav a {
  position: relative;
  padding: 8px 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--bronze);
  transition: right .18s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  right: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  isolate: isolate;
  min-height: 610px;
  padding-top: 82px;
  padding-bottom: 82px;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: 46px;
  right: -80px;
  width: min(58vw, 760px);
  height: calc(100% - 72px);
  opacity: .34;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 560'%3E%3Cg fill='none' stroke='%239c7950' stroke-width='3'%3E%3Cpath d='M20 430 L180 260 L265 335 L395 160 L525 325 L640 225 L860 430'/%3E%3Cpath d='M65 430 L230 310 L335 400 L495 235 L610 370 L710 290 L860 430' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 53%, rgba(251,248,241,.92) 66%, rgba(251,248,241,.35) 100%);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: .84;
}

.hero > p:not(.eyebrow) {
  max-width: 650px;
}

.page-intro {
  padding-top: 68px;
  padding-bottom: 46px;
}

.page-intro h1 {
  max-width: 920px;
  font-size: clamp(3.6rem, 6.6vw, 6.6rem);
  line-height: .88;
}

.page-intro h2 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 500;
}

.section {
  padding-top: 44px;
  padding-bottom: 52px;
}

.project-grid,
.service-grid {
  gap: 30px 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card > a:last-child {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.project-placeholder {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(156,121,80,.06), transparent 58%),
    var(--ivory);
}

.project-placeholder::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 24%;
  height: 1px;
  background: var(--border);
}

.project-card h2,
.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.service-grid article {
  padding: 6px 24px 10px;
}

.service-grid article h2,
.service-grid article h3 {
  margin-top: 0;
  font-size: 1.42rem;
}

.contact-band {
  min-height: 150px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

@media (max-width: 850px) {
  .hero::after {
    top: auto;
    right: -130px;
    bottom: -40px;
    width: 780px;
    height: 420px;
    opacity: .18;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(251,248,241,.98) 0%, rgba(251,248,241,.9) 78%, rgba(251,248,241,.65) 100%);
  }

  .page-intro {
    padding-top: 48px;
    padding-bottom: 30px;
  }

  .page-intro h1 {
    font-size: clamp(3.2rem, 13vw, 5.2rem);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.1rem);
  }

  .project-placeholder {
    min-height: 170px;
  }

  .contact-band {
    min-height: 0;
  }
}
/* Phase 1C visual refinement */
.hero {
  min-height: 540px;
  padding-top: 68px;
  padding-bottom: 68px;
}

.hero::after {
  top: 28px;
  right: -25px;
  width: min(54vw, 700px);
  height: calc(100% - 40px);
  opacity: .48;
}

.hero::before {
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 48%, rgba(251,248,241,.90) 59%, rgba(251,248,241,.56) 74%, rgba(251,248,241,.20) 100%);
}

.hero h1 {
  max-width: 720px;
}

.page-intro {
  padding-top: 60px;
  padding-bottom: 24px;
}

.page-intro + .section {
  padding-top: 24px;
}

.page-intro + .section.project-grid {
  padding-top: 18px;
}

.project-placeholder {
  min-height: 190px;
  background:
    linear-gradient(145deg, rgba(156,121,80,.09), transparent 48%),
    linear-gradient(0deg, rgba(16,38,51,.018), rgba(16,38,51,.018)),
    var(--ivory);
}

.project-placeholder::before {
  content: "";
  position: absolute;
  width: 56%;
  height: 42%;
  left: 22%;
  top: 25%;
  border-top: 1px solid rgba(156,121,80,.22);
  border-bottom: 1px solid rgba(156,121,80,.16);
  transform: skewY(-8deg);
  pointer-events: none;
}

.project-placeholder::after {
  left: 10%;
  right: 10%;
  bottom: 18%;
  background: rgba(156,121,80,.30);
}

.project-placeholder {
  letter-spacing: .015em;
}

.project-label {
  margin-bottom: 8px;
}

.service-grid article {
  min-height: 150px;
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .hero::after {
    right: -220px;
    bottom: -55px;
    width: 720px;
    height: 390px;
    opacity: .22;
  }

  .page-intro {
    padding-top: 42px;
    padding-bottom: 18px;
  }

  .page-intro + .section,
  .page-intro + .section.project-grid {
    padding-top: 18px;
  }

  .service-grid article {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.7rem);
    line-height: .87;
  }

  .hero h2 {
    margin-top: 20px;
    font-size: 1.55rem;
  }

  .hero > p:not(.eyebrow),
  .page-intro > p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .page-intro {
    padding-top: 36px;
    padding-bottom: 12px;
  }

  .page-intro h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
    line-height: .9;
  }

  .section {
    padding-top: 30px;
    padding-bottom: 38px;
  }

  .page-intro + .section,
  .page-intro + .section.project-grid {
    padding-top: 14px;
  }

  .project-placeholder {
    min-height: 155px;
  }
}
/* Phase 1D Valdyr Systems brand integration */
.founder-line {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name {
  letter-spacing: .015em;
}

/* Phase 1E stacking repair */
.hero::after {
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* Phase 1G final static alpine hero */
.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background: #fbf8f1;
  padding-top: 96px;
  padding-bottom: 92px;
}

.hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72%;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, #fbf8f1 0%, rgba(251,248,241,.98) 8%, rgba(251,248,241,.88) 17%, rgba(251,248,241,.58) 29%, rgba(251,248,241,.18) 43%, rgba(251,248,241,0) 58%),
    linear-gradient(180deg, rgba(16,38,51,.02), rgba(16,38,51,.11)),
    url("../video/valdyr-mountain-static.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 24%, rgba(196,147,84,.20), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(8,28,40,.08));
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 25%;
  background: linear-gradient(0deg, rgba(16,38,51,.12), transparent);
}

.hero::before,
.hero::after {
  display: none;
}

.hero > *:not(.hero-media) {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 650px;
  margin-top: 18px;
  margin-bottom: 22px;
  line-height: .88;
}

.hero h1 span {
  color: #9c7950;
}

.hero h2 {
  max-width: 700px;
  margin-bottom: 22px;
}

.hero > p:not(.eyebrow) {
  max-width: 610px;
  line-height: 1.55;
}

.hero .actions {
  margin-top: 34px;
}

@media (max-width: 1050px) {
  .hero-media {
    width: 76%;
    background-position: 58% center;
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 620px;
    padding-top: 76px;
  }

  .hero-media {
    width: 100%;
    opacity: .50;
    background-image:
      linear-gradient(180deg, rgba(251,248,241,.98) 0%, rgba(251,248,241,.91) 45%, rgba(251,248,241,.70) 70%, rgba(251,248,241,.48) 100%),
      linear-gradient(90deg, rgba(251,248,241,.94), rgba(251,248,241,.25)),
      url("../video/valdyr-mountain-static.jpg");
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .hero-media {
    opacity: .38;
    background-position: 62% center;
  }

  .hero h1 {
    line-height: .94;
  }
}

/* Phase 1G-B bottom-left ivory fade */
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  height: auto;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 58% at 0% 100%, #fbf8f1 0%, rgba(251,248,241,.98) 18%, rgba(251,248,241,.88) 34%, rgba(251,248,241,.58) 50%, rgba(251,248,241,.22) 65%, rgba(251,248,241,0) 80%),
    linear-gradient(0deg, rgba(251,248,241,.52) 0%, rgba(251,248,241,.18) 10%, rgba(251,248,241,0) 24%);
}

/* Phase 1H-A final mobile polish */
@media (max-width: 480px) {
  .site-header {
    min-height: 0;
    gap: 22px;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .brand strong {
    font-size: 1.58rem;
    line-height: 1;
  }

  .brand span {
    margin-top: 8px;
    font-size: .57rem;
    letter-spacing: .21em;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-header nav a {
    font-size: .89rem;
    white-space: nowrap;
    padding: 5px 0 7px;
  }

  .hero .eyebrow {
    line-height: 1.55;
  }

  .section-heading {
    align-items: flex-end;
    gap: 16px;
  }

  .section-heading > a {
    flex: 0 0 auto;
    margin-bottom: 5px;
    font-size: .68rem;
    letter-spacing: .08em;
  }

  .contact-band .phone {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }
}
