/* ISR Media Group: shared styles for every page */
:root {
  --bg: #0b1020;
  --bg-2: #111832;
  --card: #141c38;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f8;
  --muted: #9aa3bd;
  --silver: #c9cdd6;
  --silver-2: #9fa5b0;
  --isr: #5b8def;
  --fish: #2cc4b0;
  --akita: #e8894a;
  --club: #3fae7a;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 16px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.2rem; letter-spacing: 0.3em; text-transform: uppercase; color: #e6e9f0; line-height: 1; white-space: nowrap; }
.nav-brand svg { width: 45px; height: 45px; flex: none; }
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 163px 0 170px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 72px;
}
.hero-copy { text-align: left; }
.hero-copy .tagline, .hero-copy .lede { margin-left: 0; margin-right: 0; }
.hero-copy .tagline { margin-top: 0; }

.logo {
  position: relative;
  justify-self: center;
  display: inline-flex; flex-direction: column; align-items: center; gap: 22px;
}
/* Geometric line art behind the hero logo */
.hero-art {
  position: absolute; left: 50%; top: 54px; z-index: -1;
  width: 520px; height: 520px; transform: translate(-50%, -50%);
  pointer-events: none; overflow: visible;
}
.hero-art .ring { stroke: rgba(201, 205, 214, 0.14); stroke-width: 1; }
.hero-art .r2 { stroke: rgba(201, 205, 214, 0.11); }
.hero-art .r3 { stroke: rgba(201, 205, 214, 0.08); stroke-dasharray: 3 9; animation: dash 40s linear infinite; }
.hero-art .r4 { stroke: rgba(201, 205, 214, 0.05); }
.hero-art .node { fill: #7aa4ff; opacity: .75; animation: twinkle 4s ease-in-out infinite; }
.hero-art .node:nth-of-type(2) { animation-delay: 1s; }
.hero-art .node:nth-of-type(3) { animation-delay: 2s; }
.hero-art .node:nth-of-type(4) { animation-delay: 3s; }
@keyframes dash { to { stroke-dashoffset: -240; } }
@keyframes twinkle { 0%, 100% { opacity: .3; } 50% { opacity: .9; } }
.logo-mark { width: 109px; height: 109px; overflow: visible; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5)); }
.logo-mark .tile, .logo-mark .frame { transform-box: fill-box; transform-origin: center; }
.logo-mark .tile { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.logo-mark .t2 { animation-delay: 0.1s; }
.logo-mark .t3 { animation-delay: 0.2s; }
.logo-mark .t4 { animation-delay: 0.3s; }
.logo-mark .core { animation-delay: 0.5s; }
.logo-mark .frame { animation: frame 1.6s ease both 0.3s; }
@keyframes rise { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes frame { from { transform: scale(1.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.logo-sub {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.3125rem, 3.25vw, 1.75rem);
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* offset trailing letter-spacing so the text centers */
  white-space: nowrap;
  color: #e6e9f0;
  text-transform: uppercase;
  display: flex; align-items: center;
}

.tagline {
  margin: 36px auto 0;
  max-width: 640px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.35;
}
.tagline em { font-style: normal; color: #7aa4ff; }
.lede { margin: 18px auto 0; max-width: 545px; color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 38px; padding: 14px 26px;
  border-radius: 999px;
  background: #7aa4ff;
  color: #0b1020; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(122, 164, 255, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(122, 164, 255, 0.5); }

/* ---------- Brands ---------- */
.section { padding: 96px 0; }
.brands { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; }
.section-head h2 em { font-style: normal; color: #7aa4ff; }
.section-head p { color: var(--muted); max-width: 860px; margin: 14px auto 0; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1120px; margin-inline: auto; }

.brand {
  --c: var(--silver);
  --tint: color-mix(in srgb, var(--c) 72%, #fff);
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 34px 26px;
  border-radius: 17px;
  background:
    radial-gradient(460px 280px at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    linear-gradient(160deg, #172042 0%, #0f1630 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
/* Silver hairline border that fades into the brand color */
.brand::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(225, 229, 236, 0.6), rgba(201, 205, 214, 0.08) 38%, rgba(201, 205, 214, 0.08) 62%, color-mix(in srgb, var(--c) 55%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7; transition: opacity .4s;
  pointer-events: none;
}
/* Light sheen that sweeps across on hover */
.brand::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(235, 240, 250, 0.07), transparent);
  transform: translateX(0) rotate(12deg);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
  pointer-events: none; z-index: -1;
}
.brand:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 32px 70px rgba(0, 0, 0, 0.5); }
.brand:hover::before { opacity: 1; }
.brand:hover::after { transform: translateX(420%) rotate(12deg); }

.brand-isr   { --c: var(--isr); }
.brand-fish  { --c: var(--fish); }
.brand-akita { --c: var(--akita); }
.brand-club  { --c: var(--club); }


.brand-logo {
  position: absolute; top: 26px; right: 30px;
  height: 40px; width: auto; max-width: 64px; object-fit: contain;
}
.brand-head { display: flex; align-items: center; gap: 22px; padding-right: 76px; } /* room for the corner logo */


.brand h3 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.62rem; line-height: 1.1; letter-spacing: 0.005em; color: #f3f5f9;
}
.brand h3 span { color: var(--tint); }
.brand .domain { margin-top: 5px; color: var(--muted); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.brand .rule { height: 1px; margin: 20px 0 14px; background: linear-gradient(90deg, rgba(201, 205, 214, 0.45), rgba(201, 205, 214, 0.05)); }
.brand p { color: #c4cadb; flex: 1; max-width: 60ch; font-size: 0.9rem; line-height: 1.55; }

.brand .visit {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 11px; align-self: flex-start;
  color: #dfe3ea; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.brand .visit i {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 205, 214, 0.5);
  color: var(--silver);
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.brand:hover .visit i { background: linear-gradient(135deg, #e6e9ef, var(--silver-2)); border-color: transparent; color: #0f1320; transform: translateX(4px); }


/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about .stats { margin-top: 32px; }
.about h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.2; }
.about h2 em { font-style: normal; color: #7aa4ff; }
.about p { color: var(--muted); margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--silver); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* Ecosystem diagram: the group at the center, linked to each brand */
.eco svg { width: 100%; height: auto; display: block; overflow: visible; }
.eco .link { fill: none; stroke: rgba(201, 205, 214, 0.22); stroke-width: 1; stroke-dasharray: 2 5; }
.eco .pulse { fill: #7aa4ff; offset-rotate: 0deg; animation: travel 3.2s cubic-bezier(.45,0,.55,1) infinite; filter: drop-shadow(0 0 4px rgba(122, 164, 255, 0.9)); }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.eco-core { fill: #111832; stroke: rgba(201, 205, 214, 0.35); stroke-width: 1; }
.eco-core-ring { fill: none; stroke: rgba(122, 164, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 7; transform-origin: 240px 200px; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eco-node circle { fill: #141c38; stroke: rgba(201, 205, 214, 0.3); stroke-width: 1; }
.eco-node text { fill: #c4cadb; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-anchor: middle; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
/* Mid-size screens: shrink the hero line art so it stays clear of the text column */
@media (max-width: 1180px) {
  .hero-art { width: 440px; height: 440px; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; gap: 64px; }
  /* Stacked layout: keep the line art inside the logo area, clear of the tagline */
  .hero-art { width: 360px; height: 360px; }
  .hero-art .r3, .hero-art .r4 { display: none; }
  .hero-copy { text-align: center; }
  .hero-copy .tagline, .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 72px 0 84px; }
  .logo-mark { width: 84px; height: 84px; }
  .hero-art { width: 300px; height: 300px; top: 42px; }
  .logo-sub { letter-spacing: 0.2em; margin-right: -0.2em; }
  .nav-brand { font-size: 1rem; letter-spacing: 0.2em; gap: 12px; }
  .brand { padding: 24px 22px 22px; }
  .brand h3 { font-size: 1.5rem; }
  .brand-head { gap: 16px; }
  .brand-logo { top: 20px; right: 20px; height: 28px; max-width: 44px; }
  .brand-head { padding-right: 40px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Contact page ---------- */
.nav-links a[aria-current="page"] { color: var(--text); }

.contact-hero { padding: 96px 0 40px; text-align: center; }
.contact-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.12;
}
.contact-hero h1 em { font-style: normal; color: #7aa4ff; }
.contact-hero p { color: var(--muted); max-width: 600px; margin: 18px auto 0; font-size: 1.05rem; }

.contact { padding: 40px 0 110px; }
.contact-home { padding: 96px 0 110px; border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px;
  max-width: 1120px; align-items: start;
}

.panel {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, #172042 0%, #0f1630 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
}
/* Silver hairline border, matching the brand cards */
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(225, 229, 236, 0.5), rgba(201, 205, 214, 0.08) 45%, rgba(122, 164, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.info { padding: 38px 36px; }
.info h2, .inquiry h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.9rem; line-height: 1.15; color: #f3f5f9;
}
.info > p { color: var(--muted); margin-top: 10px; }

.phone {
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px; padding: 20px 22px;
  border-radius: 16px;
  background: rgba(122, 164, 255, 0.08);
  border: 1px solid rgba(122, 164, 255, 0.28);
  transition: background .3s, border-color .3s, transform .3s;
}
.phone:hover { background: rgba(122, 164, 255, 0.14); border-color: rgba(122, 164, 255, 0.55); transform: translateY(-2px); }
.phone i {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #7aa4ff; color: #0b1020;
}
.phone small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.phone b { display: block; margin-top: 2px; font-size: 1.45rem; font-weight: 600; letter-spacing: 0.02em; color: #f3f5f9; }

.info ul { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.info li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: #c4cadb; font-size: 0.95rem; }
.info li svg { flex: none; margin-top: 3px; color: #7aa4ff; }
.info li b { display: block; color: #f3f5f9; font-weight: 600; }

.inquiry { padding: 38px 40px 40px; }
.inquiry > p { color: var(--muted); margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #c9cdd6; }
.field label span { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 0.98rem; color: var(--text);
  background: rgba(11, 16, 32, 0.55);
  border: 1px solid rgba(201, 205, 214, 0.16);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3bd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field select option { background: #141c38; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #6b7390; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #7aa4ff; background: rgba(11, 16, 32, 0.8);
  box-shadow: 0 0 0 3px rgba(122, 164, 255, 0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: 0.82rem; }
.form-foot .btn { margin-top: 0; border: 0; cursor: pointer; font-family: inherit; }
.form-foot .btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.form-status { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; }
.form-status.ok { display: block; background: rgba(63, 174, 122, 0.12); border: 1px solid rgba(63, 174, 122, 0.4); color: #bfe8d3; }
.form-status.err { display: block; background: rgba(232, 137, 74, 0.12); border: 1px solid rgba(232, 137, 74, 0.4); color: #f6d3bb; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-hero { padding: 64px 0 28px; }
  .info, .inquiry { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
}
