/* Rotamac — bold, editorial; navy + blue + green from the logo */

:root {
  /* brand palette — sampled from ROTAMAC logo */
  --navy: #073f6f;
  --blue: #0969bd;
  --green: #087c1e;
  --green-deep: #06651a;
  --green-hi: #5ccf78;   /* green tuned for text on navy */
  --blue-hi: #7fb9ec;    /* blue tuned for text on navy */

  --paper: #f4f7fa;
  --card: #ffffff;
  --card-2: #e8eff5;
  --ink: #073f6f;
  --ink-2: #042a4b;
  --line: #d6e0ea;
  --line-dark: rgba(244, 247, 250, .14);
  --text: #0e2236;
  --muted: #586a7c;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1280px;
  --gut: clamp(20px, 4.4vw, 52px);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, .68, .24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.025em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--r-sm); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(244, 247, 250, .92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
  transition: height .35s var(--ease);
}
.is-stuck .header-inner { height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); }
.is-stuck .brand { color: var(--ink); }
.brand-mark {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px -8px rgba(4, 42, 75, .6);
}
.brand-mark img { width: auto; height: 32px; }
.is-stuck .brand-mark { box-shadow: 0 0 0 1px var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; font-weight: 800; letter-spacing: .13em; }
.brand-text span {
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .66;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: rgba(244, 247, 250, .78);
  padding: 6px 0;
  transition: color .25s ease;
}
.nav a:hover { color: var(--green-hi); }
.is-stuck .nav a { color: #3a4d60; }
.is-stuck .nav a:hover { color: var(--ink); }
.nav .nav-cta { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  padding: 13px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.header-cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.is-stuck .header-cta { background: var(--ink); color: var(--paper); }
.is-stuck .header-cta:hover { background: var(--blue); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(244, 247, 250, .35);
  background: rgba(7, 63, 111, .35);
  border-radius: 999px;
  padding: 0;
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.6px;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s ease, background .3s ease;
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
body.nav-open .nav-toggle { border-color: rgba(246,243,236,.4); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s var(--ease);
}
.btn span { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-quiet { border-color: rgba(244, 247, 250, .38); color: var(--paper); background: transparent; }
.btn-quiet:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); margin-top: 8px; }
.btn-ink:hover { background: var(--blue); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: 130px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 42, 75, .9) 0%, rgba(4, 42, 75, .58) 32%, rgba(4, 42, 75, .78) 66%, rgba(7, 63, 111, .96) 100%),
    radial-gradient(120% 90% at 8% 92%, rgba(7, 63, 111, .92), rgba(7, 63, 111, 0) 62%);
}

.hero-inner { position: relative; width: 100%; padding-bottom: clamp(74px, 9vw, 120px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, .82);
  border: 1px solid rgba(244, 247, 250, .26);
  border-radius: 999px;
  padding: 8px 16px 8px 13px;
  margin-bottom: clamp(22px, 3.4vw, 40px);
  background: rgba(4, 42, 75, .28);
  backdrop-filter: blur(8px);
  animation: rise .8s var(--ease) both;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); flex: none; }

.hero h1 {
  font-size: clamp(2.85rem, 8.6vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: .95;
  margin-bottom: clamp(22px, 2.8vw, 32px);
  max-width: 17ch;
  animation: rise .95s var(--ease) .05s both;
}
.accent { color: var(--green-hi); }
.hero h1 .accent { display: inline; }

.hero-lede {
  max-width: 56ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: rgba(244, 247, 250, .76);
  margin-bottom: clamp(28px, 3.4vw, 40px);
  animation: rise .95s var(--ease) .1s both;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .95s var(--ease) .15s both; }

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(56px, 9vw, 120px);
  background: linear-gradient(180deg, rgba(244, 247, 250, 0) 0%, var(--paper) 96%);
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- section chrome ---------- */

.section { padding: clamp(66px, 8.5vw, 132px) 0; scroll-margin-top: 88px; }
section[id] { scroll-margin-top: 88px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 clamp(16px, 2vw, 22px);
}
.eyebrow-light { color: var(--green-hi); }

.display {
  font-size: clamp(2.1rem, 5.1vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  max-width: 22ch;
  color: var(--ink);
}
.accent-ink { color: var(--blue); }

.sec-head { margin-bottom: clamp(32px, 4.6vw, 62px); }
.sec-head-row {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}
.head-note { max-width: 40ch; font-size: .98rem; line-height: 1.65; color: var(--muted); margin: 0 0 6px; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.about-copy .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 1.1em;
}
.about-copy p:not(.lead) { color: var(--muted); font-size: 1rem; }

.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media figure { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--card-2); }
.about-media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.about-media figure:last-child { margin-top: clamp(22px, 3.4vw, 52px); }

.values {
  list-style: none;
  margin: clamp(38px, 5vw, 66px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.values li {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: clamp(22px, 2.8vw, 32px);
}
.values h3 { margin-bottom: 10px; color: var(--ink); }
.values p { font-size: .95rem; color: var(--muted); margin: 0; }

.pull {
  margin: clamp(40px, 5.5vw, 74px) 0 0;
  padding-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.6fr .4fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
}
.pull p {
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
}
/* ---------- services ---------- */

.services { background: var(--card-2); }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cards li {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: clamp(24px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}
.cards li:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 63, 111, .22);
  box-shadow: 0 18px 40px -28px rgba(7, 63, 111, .45);
}
.card-num {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.cards h3 { font-size: 1.22rem; margin-bottom: 10px; color: var(--ink); }
.cards p { font-size: .94rem; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
.card-link {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .25s ease, border-color .25s ease;
}
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover { color: var(--blue); border-color: var(--blue); }
.card-link:hover span { transform: translateX(4px); }

/* ---------- band ---------- */

.band {
  position: relative;
  min-height: clamp(360px, 44vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 42, 75, .35) 0%, rgba(4, 42, 75, .88) 100%);
}
.band-inner {
  position: relative;
  padding-top: 90px;
  padding-bottom: clamp(34px, 4.4vw, 58px);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band-line {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.band-meta {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, .64);
}

/* ---------- projects ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.work article { display: flex; flex-direction: column; }
.work figure {
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--card-2);
}
.work img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.work article:hover img { transform: scale(1.045); }
.work-meta {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.work h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--ink); margin-bottom: 9px; }
.work-text { font-size: .93rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- process ---------- */

.process { background: var(--ink); color: rgba(244, 247, 250, .7); }
.process .eyebrow { color: var(--green-hi); }
.process .display { color: var(--paper); }
.process .sec-head { max-width: 940px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.steps li {
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  background: rgba(244, 247, 250, .04);
  padding: clamp(22px, 2.6vw, 30px);
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--green-hi);
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.steps h3 { color: var(--paper); font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: 10px; }
.steps p { font-size: .92rem; line-height: 1.6; color: rgba(244, 247, 250, .62); margin: 0; }

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(52px, 6.5vw, 96px); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.6vw, 68px);
  align-items: start;
}

.contact-list { margin: 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list > div:first-child { border-top: 1px solid var(--line); }
.contact-list dt {
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s ease, color .2s ease; }
.contact-list a:hover { border-color: var(--blue); color: var(--blue); }

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.2vw, 40px);
}
.form h3 { margin-bottom: 24px; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color .25s ease, background .25s ease;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #586a7c 50%), linear-gradient(135deg, #586a7c 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #93a3b3; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.form-submit { width: 100%; margin-top: 6px; }
.form-hint { margin: 14px 0 0; font-size: .78rem; line-height: 1.55; color: var(--muted); }

/* ---------- CTA panel ---------- */

.cta-panel {
  margin-top: clamp(44px, 6vw, 88px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4.4vw, 60px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}
.cta-line {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-2);
  color: rgba(244, 247, 250, .6);
  padding: 28px 0;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(244, 247, 250, .78);
}
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .sec-head-row { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .head-note { max-width: 48ch; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-media img { aspect-ratio: 4 / 3; }
  .about-media figure:last-child { margin-top: 0; }
  .pull { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .work { grid-template-columns: 1fr 1fr; }
  .work article:last-child { grid-column: span 2; max-width: calc(50% - 12px); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 70; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 0;
    margin: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0 var(--gut);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .5s var(--ease), visibility .5s;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  .nav a {
    font-size: clamp(1.9rem, 7.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--paper) !important;
    padding: 8px 0;
  }
  .nav a:hover { color: var(--green-hi) !important; }
  .nav .nav-cta {
    display: inline-flex;
    margin-top: 24px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #fff !important;
    background: var(--green);
    border-radius: 999px;
    padding: 15px 26px;
  }

  .hero { min-height: 82svh; padding-top: 108px; }
  .hero-inner { padding-bottom: 88px; }
  .hero h1 { max-width: 20ch; }
  .values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-panel { align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 78svh; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .about-media { grid-template-columns: 1fr; }
  .about-media figure:last-child { display: none; }
  .cards { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; gap: 34px; }
  .work article:last-child { grid-column: auto; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .hero h1, .hero-lede, .hero-actions { animation: none; }
  .work img, .btn, .cards li { transition: none; }
}
