@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --paper: #edf3f4;
  --paper-soft: #c8d8dc;
  --text: #142f3b;
  --muted: #55707a;
  --line: rgba(20, 47, 59, 0.24);
  --sage: #78a6a3;
  --sage-dark: #255c63;
  --terracotta: #d85f48;
  --cream: #f5fbfa;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

body.design-loom {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
}

.back-link {
  position: fixed;
  z-index: 5;
  left: 30px;
  top: 10px;
  color: var(--text);
  font: 700 9px var(--sans);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.design-loom-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--paper) 0%, #e1ecee 58%, #d1e2df 100%);
}

.site-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 58px 0 44px;
  background: rgba(237, 243, 244, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.8) inset;
}

.brand-icon-inner {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.brand-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2vw, 30px);
}

.nav-link {
  position: relative;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 30px 0;
  transition: color 300ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--terracotta);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.phone-icon {
  font-family: var(--sans);
  font-weight: 700;
  white-space: nowrap;
}

.mail-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.studio-main {
  background: var(--paper);
  min-height: calc(100vh - 78px);
}

.page-title {
  padding: 40px 72px 16px;
  background: var(--paper);
}

.page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 3vw, 50px);
  font-weight: 500;
  line-height: 1.2;
  font-family: var(--sans);
  letter-spacing: -0.035em;
}

.image-story {
  padding: 20px 72px 60px;
}

.image-wrap {
  position: relative;
  width: min(1180px, calc(100vw - 144px));
  min-height: 500px;
  height: calc(100vh - 240px);
  margin: 0 auto;
  border: 2px solid var(--line);
  background: var(--paper-soft);
  box-shadow: 16px 16px 0 var(--sage-dark);
  border-radius: 20px;
  overflow: hidden;
}

.image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 47, 59, 0.18);
  z-index: 1;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.floating-years {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  color: var(--paper);
  border: 1px solid rgba(245, 251, 250, 0.78);
  background: rgba(20, 47, 59, 0.86);
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 210px;
}

.years-number {
  font-family: var(--serif);
  font-size: clamp(58px, 5vw, 74px);
  line-height: 1;
  font-weight: 700;
  color: var(--paper);
}

.years-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 20px 30px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .image-wrap {
    width: 100%;
  }

  .page-title,
  .image-story {
    padding-left: 30px;
    padding-right: 30px;
  }
}

.inner-page {
  padding: 52px 72px 80px;
  max-width: 1240px;
  margin: 0 auto;
}

.inner-page h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 600;
  line-height: .98;
}

.inner-intro {
  max-width: 620px;
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(245, 251, 250, .48);
}

.content-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.content-card p,
.contact-details {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-details {
  font-style: normal;
  font-size: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.contact-form,
.map-panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(245, 251, 250, .62);
}

.contact-form h2,
.map-heading h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.section-label {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-form label {
  display: block;
  margin: 18px 0 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(245, 251, 250, .76);
  font: inherit;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  margin-top: 22px;
  border: 0;
  padding: 14px 18px;
  color: var(--paper);
  background: var(--terracotta);
  font: 700 12px var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button span { margin-left: 8px; font-size: 16px; }

.map-heading address {
  display: block;
  margin: -10px 0 24px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 310px;
  border: 0;
  filter: saturate(.8) contrast(.98);
}

@media (max-width: 980px) {
  .inner-page { padding: 38px 30px 60px; }
  .content-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
