.tec-page {
  background: var(--color-page);
}

.tec-page .container {
  min-width: 0;
}

.tec-hero {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.tec-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
}

.tec-hero__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.tec-hero__copy > * {
  margin: 0;
}

.tec-hero__rule,
.tec-booking__rule,
.tec-address__rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--color-detail);
}

.tec-hero h1 {
  max-width: 540px;
  color: var(--color-ivory-50);
  font-size: clamp(3rem, 5.2vw, 4rem);
}

.tec-hero__lead {
  max-width: 540px;
  color: rgb(245 240 231 / 92%);
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
}

.tec-hero__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.tec-hero__process-link {
  color: var(--color-ivory-50);
  padding-block: 0.75rem;
}

.tec-hero__note {
  max-width: 500px;
  color: rgb(245 240 231 / 75%);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.tec-hero__media {
  grid-column: 7 / span 6;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.tec-hero__media img {
  width: 100%;
  height: 100%;
  object-position: 58% 52%;
}

.tec-moment__header {
  width: 100%;
  max-width: 620px;
}

.tec-moment__header h2,
.tec-texture h2,
.tec-fit h2,
.tec-process h2,
.tec-gallery h2,
.tec-reference h2,
.tec-booking h2 {
  font-size: clamp(2.5rem, 4.2vw, 3rem);
}

.tec-moment__criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.tec-criterion {
  min-width: 0;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

.tec-criterion__number,
.tec-fit__number,
.tec-process__number {
  margin: 0 0 var(--space-3);
  color: var(--color-detail);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
}

.tec-criterion h3 {
  max-width: 310px;
}

.tec-criterion p:not(.tec-criterion__number) {
  max-width: 310px;
}

.tec-texture__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.tec-texture__media {
  grid-column: 1 / span 7;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
}

.tec-texture__media img {
  width: 100%;
  height: 100%;
  object-position: 55% 55%;
}

.tec-texture__copy {
  grid-column: 9 / span 4;
  min-width: 0;
}

.tec-texture__copy > h2 {
  max-width: 520px;
}

.tec-texture__blocks {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
}

.tec-texture__blocks > section {
  min-width: 0;
}

.tec-texture__blocks > section + section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

.tec-texture__blocks h3,
.tec-texture__blocks p:not(.eyebrow) {
  max-width: 520px;
}

.tec-texture__note {
  max-width: 360px;
  margin-top: var(--space-6);
  border-top: 1px solid var(--color-detail);
  background: var(--color-surface);
  padding: var(--space-5);
}

.tec-texture__note > *:last-child {
  margin-bottom: 0;
}

.tec-fit__header {
  width: 100%;
  max-width: 650px;
}

.tec-fit__header p:not(.eyebrow) {
  color: rgb(245 240 231 / 86%);
}

.tec-fit__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: end;
  margin-top: var(--space-8);
}

.tec-fit__decisions {
  grid-column: 1 / span 9;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.tec-fit__decision {
  min-width: 0;
  border-top: 1px solid rgb(177 138 82 / 55%);
  padding-top: var(--space-5);
}

.tec-fit__decision h3 {
  color: var(--color-ivory-50);
}

.tec-fit__decision p:not(.tec-fit__number) {
  max-width: 290px;
  color: rgb(245 240 231 / 82%);
}

.tec-fit__media {
  grid-column: 10 / span 3;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.tec-fit__media img {
  width: 100%;
  height: 100%;
  object-position: 56% 40%;
}

.tec-process__header {
  width: 100%;
  max-width: 480px;
}

.tec-process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.tec-process__steps > li {
  min-width: 0;
  border-top: 1px solid var(--color-detail);
  padding-top: var(--space-5);
}

.tec-process__steps h3,
.tec-process__steps p:not(.tec-process__number) {
  max-width: 270px;
}

.tec-process__steps > li:nth-child(3) h3 {
  color: var(--color-accent);
}

.tec-process__link,
.tec-gallery__link {
  display: inline-block;
}

.tec-gallery__header {
  width: 100%;
  max-width: 620px;
}

.tec-gallery__mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-8);
}

.tec-gallery__item {
  min-width: 0;
}

.tec-gallery__item--daily {
  grid-column: 1 / span 5;
}

.tec-gallery__right {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
}

.tec-gallery__item--formal {
  grid-column: 1 / span 7;
}

.tec-gallery__item--signature {
  grid-column: 5 / span 3;
}

.tec-gallery__item .media-frame {
  width: 100%;
  min-width: 0;
}

.tec-gallery__item--daily .media-frame,
.tec-gallery__item--signature .media-frame {
  aspect-ratio: 4 / 5;
}

.tec-gallery__item--formal .media-frame {
  aspect-ratio: 3 / 2;
}

.tec-gallery__item--daily img {
  width: 100%;
  height: 100%;
  object-position: 50% 42%;
}

.tec-gallery__item--formal img {
  width: 100%;
  height: 100%;
  object-position: 62% 48%;
}

.tec-gallery__item--signature img {
  width: 100%;
  height: 100%;
  object-position: 54% 45%;
}

.tec-gallery__caption {
  min-width: 0;
  margin-top: var(--space-3);
}

.tec-gallery__caption h3,
.tec-gallery__caption p {
  max-width: 250px;
}

.tec-gallery__right .tec-gallery__item--formal .tec-gallery__caption h3,
.tec-gallery__right .tec-gallery__item--formal .tec-gallery__caption p {
  max-width: 360px;
}

.tec-gallery__link {
  margin-top: var(--space-6);
}

.tec-reference__header {
  width: 100%;
  max-width: 650px;
}

.tec-reference__panels {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.tec-reference__panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.tec-reference__panel > * {
  margin: 0;
}

.tec-reference__panel:first-child {
  grid-column: 1;
}

.tec-reference__panel:last-child {
  grid-column: 3;
}

.tec-reference__panel h3,
.tec-reference__panel p {
  max-width: 470px;
}

.tec-reference__callout {
  width: 100%;
  max-width: 470px;
  margin-top: var(--space-5);
  background: var(--color-accent);
  color: var(--color-ivory-50);
  padding: var(--space-5);
}

.tec-reference__callout .eyebrow {
  color: var(--color-detail);
}

.tec-reference__callout > *:last-child {
  margin-bottom: 0;
}

.tec-booking__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.tec-booking__intro {
  grid-column: 1 / span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.tec-booking__intro > * {
  margin: 0;
}

.tec-booking__intro h2 {
  max-width: 480px;
}

.tec-booking__intro p:not(.eyebrow) {
  max-width: 480px;
  color: rgb(245 240 231 / 86%);
}

.tec-booking__concept {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.25;
}

.tec-booking__panel {
  grid-column: 7 / span 6;
  min-width: 0;
  background: var(--color-page);
  color: var(--color-text);
}

.tec-booking__form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.tec-booking__form .field-group {
  margin: 0;
}

.tec-booking__form .button {
  align-self: stretch;
}

.tec-booking__direct {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  font-size: var(--text-sm);
}

.tec-booking__direct p {
  margin: 0;
  color: var(--color-text-muted);
}

.tec-booking__direct a {
  color: var(--color-text-strong);
  text-decoration-color: var(--color-detail);
}

.tec-address {
  padding-block: var(--section-space-compact);
}

.tec-address__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: end;
}

.tec-address__copy {
  grid-column: 1 / span 7;
  min-width: 0;
}

.tec-address__copy h2 {
  max-width: 560px;
  font-size: var(--text-xl);
  line-height: 1.25;
}

.tec-address__action {
  grid-column: 10 / span 3;
  min-width: 0;
}

.tec-address__action p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

@media (max-width: 980px) {
  .tec-hero__grid,
  .tec-texture__grid,
  .tec-fit__layout,
  .tec-booking__grid,
  .tec-address__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tec-hero__copy,
  .tec-hero__media,
  .tec-texture__media,
  .tec-texture__copy,
  .tec-fit__decisions,
  .tec-fit__media,
  .tec-booking__intro,
  .tec-booking__panel,
  .tec-address__copy,
  .tec-address__action {
    grid-column: 1 / span 6;
  }

  .tec-hero__grid,
  .tec-texture__grid,
  .tec-booking__grid {
    gap: var(--space-7);
  }

  .tec-hero__media {
    max-width: 680px;
  }

  .tec-texture__copy {
    max-width: 620px;
  }

  .tec-fit__decisions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tec-fit__media {
    max-width: 420px;
  }

  .tec-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tec-gallery__mosaic {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .tec-gallery__item--daily,
  .tec-gallery__right,
  .tec-gallery__item--formal,
  .tec-gallery__item--signature {
    grid-column: 1;
  }

  .tec-gallery__right {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .tec-gallery__item--daily .media-frame,
  .tec-gallery__item--signature .media-frame,
  .tec-gallery__item--formal .media-frame {
    max-width: 680px;
  }

  .tec-gallery__caption h3,
  .tec-gallery__caption p,
  .tec-gallery__right .tec-gallery__item--formal .tec-gallery__caption h3,
  .tec-gallery__right .tec-gallery__item--formal .tec-gallery__caption p {
    max-width: 620px;
  }

  .tec-reference__panels {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .tec-reference__panel:first-child,
  .tec-reference__panel:last-child {
    grid-column: 1;
  }

  .tec-reference__panel {
    max-width: 620px;
  }

  .tec-address__action {
    max-width: 460px;
  }
}

@media (max-width: 767px) {
  .tec-hero {
    padding-block: var(--section-space-compact);
  }

  .tec-hero__grid,
  .tec-texture__grid,
  .tec-fit__layout,
  .tec-booking__grid,
  .tec-address__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .tec-hero__copy,
  .tec-hero__media,
  .tec-texture__media,
  .tec-texture__copy,
  .tec-fit__decisions,
  .tec-fit__media,
  .tec-booking__intro,
  .tec-booking__panel,
  .tec-address__copy,
  .tec-address__action {
    grid-column: 1;
  }

  .tec-hero h1 {
    max-width: 100%;
    font-size: 2.125rem;
    line-height: 1.06;
  }

  .tec-hero__lead {
    max-width: 100%;
    font-size: var(--text-base);
    line-height: var(--leading-base);
  }

  .tec-hero__actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .tec-hero__actions .button,
  .tec-hero__process-link {
    width: 100%;
  }

  .tec-hero__process-link {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
  }

  .tec-hero__media,
  .tec-texture__media,
  .tec-fit__media {
    max-width: none;
  }

  .tec-moment__header,
  .tec-fit__header,
  .tec-process__header,
  .tec-gallery__header,
  .tec-reference__header,
  .tec-texture__copy,
  .tec-booking__intro,
  .tec-address__copy,
  .tec-address__action {
    max-width: 100%;
  }

  .tec-moment__header h2,
  .tec-texture h2,
  .tec-fit h2,
  .tec-process h2,
  .tec-gallery h2,
  .tec-reference h2,
  .tec-booking h2 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .tec-moment__criteria,
  .tec-fit__decisions,
  .tec-process__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .tec-moment__criteria {
    margin-top: var(--space-6);
  }

  .tec-criterion h3,
  .tec-criterion p:not(.tec-criterion__number),
  .tec-fit__decision p:not(.tec-fit__number),
  .tec-process__steps h3,
  .tec-process__steps p:not(.tec-process__number),
  .tec-texture__blocks h3,
  .tec-texture__blocks p:not(.eyebrow) {
    max-width: 100%;
  }

  .tec-fit__layout,
  .tec-gallery__mosaic {
    margin-top: var(--space-6);
  }

  .tec-fit__media {
    width: 100%;
  }

  .tec-process__steps {
    margin-top: var(--space-6);
  }

  .tec-gallery__item--daily .media-frame,
  .tec-gallery__item--signature .media-frame,
  .tec-gallery__item--formal .media-frame {
    max-width: none;
  }

  .tec-gallery__caption h3,
  .tec-gallery__caption p,
  .tec-gallery__right .tec-gallery__item--formal .tec-gallery__caption h3,
  .tec-gallery__right .tec-gallery__item--formal .tec-gallery__caption p {
    max-width: 100%;
  }

  .tec-reference__panel {
    max-width: 100%;
    padding: var(--space-5);
  }

  .tec-reference__panel h3,
  .tec-reference__panel p,
  .tec-reference__callout {
    max-width: 100%;
  }

  .tec-booking__panel {
    padding: var(--space-4);
  }

  .tec-booking__direct {
    align-items: flex-start;
    flex-direction: column;
  }

  .tec-address__copy h2 {
    max-width: 100%;
    font-size: var(--text-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tec-page .media-frame:hover > img {
    filter: none;
    transform: none;
  }
}
